Searched refs:virtual_file (Results 1 – 4 of 4) sorted by relevance
/external/protobuf/src/google/protobuf/compiler/ |
D | importer_unittest.cc | 424 std::string virtual_file; in TEST_F() local 428 source_tree_.DiskFileToVirtualFile("/foo", &virtual_file, in TEST_F() 433 dirnames_[1] + "/foo", &virtual_file, &shadowing_disk_file)); in TEST_F() 434 EXPECT_EQ("bar/foo", virtual_file); in TEST_F() 439 dirnames_[1] + "/baz", &virtual_file, &shadowing_disk_file)); in TEST_F() 440 EXPECT_EQ("bar/baz", virtual_file); in TEST_F() 444 dirnames_[0] + "/foo", &virtual_file, &shadowing_disk_file)); in TEST_F() 445 EXPECT_EQ("bar/foo", virtual_file); in TEST_F() 458 std::string virtual_file; in TEST_F() local 463 source_tree_.DiskFileToVirtualFile("../../baz", &virtual_file, in TEST_F() [all …]
|
D | importer.cc | 398 std::string* virtual_file, in DiskFileToVirtualFile() argument 406 mappings_[i].virtual_path, virtual_file)) { in DiskFileToVirtualFile() 420 if (ApplyMapping(*virtual_file, mappings_[i].virtual_path, in DiskFileToVirtualFile() 441 bool DiskSourceTree::VirtualFileToDiskFile(const std::string& virtual_file, in VirtualFileToDiskFile() argument 444 OpenVirtualFile(virtual_file, disk_file)); in VirtualFileToDiskFile() 457 const std::string& virtual_file, std::string* disk_file) { in OpenVirtualFile() argument 458 if (virtual_file != CanonicalizePath(virtual_file) || in OpenVirtualFile() 459 ContainsParentReference(virtual_file)) { in OpenVirtualFile() 471 if (ApplyMapping(virtual_file, mappings_[i].virtual_path, in OpenVirtualFile()
|
D | importer.h | 292 const std::string& disk_file, std::string* virtual_file, 298 bool VirtualFileToDiskFile(const std::string& virtual_file, 320 io::ZeroCopyInputStream* OpenVirtualFile(const std::string& virtual_file,
|
D | command_line_interface.cc | 1168 std::string virtual_file, shadowing_disk_file; in MakeProtoProtoPathRelative() local 1169 switch (source_tree->DiskFileToVirtualFile(*proto, &virtual_file, in MakeProtoProtoPathRelative() 1172 *proto = virtual_file; in MakeProtoProtoPathRelative() 1998 const std::string& virtual_file = file.name(); in GenerateDependencyManifestFile() local 2001 source_tree->VirtualFileToDiskFile(virtual_file, &disk_file)) { in GenerateDependencyManifestFile() 2005 std::cerr << "Unable to identify path for file " << virtual_file in GenerateDependencyManifestFile()
|