Searched refs:virtual_file (Results 1 – 4 of 4) sorted by relevance
/third_party/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 | 396 std::string* virtual_file, in DiskFileToVirtualFile() argument 404 mappings_[i].virtual_path, virtual_file)) { in DiskFileToVirtualFile() 418 if (ApplyMapping(*virtual_file, mappings_[i].virtual_path, in DiskFileToVirtualFile() 439 bool DiskSourceTree::VirtualFileToDiskFile(const std::string& virtual_file, in VirtualFileToDiskFile() argument 442 OpenVirtualFile(virtual_file, disk_file)); in VirtualFileToDiskFile() 455 const std::string& virtual_file, std::string* disk_file) { in OpenVirtualFile() argument 456 if (virtual_file != CanonicalizePath(virtual_file) || in OpenVirtualFile() 457 ContainsParentReference(virtual_file)) { in OpenVirtualFile() 469 if (ApplyMapping(virtual_file, mappings_[i].virtual_path, in OpenVirtualFile()
|
D | importer.h | 293 const std::string& disk_file, std::string* virtual_file, 299 bool VirtualFileToDiskFile(const std::string& virtual_file, 321 io::ZeroCopyInputStream* OpenVirtualFile(const std::string& virtual_file,
|
D | command_line_interface.cc | 1263 std::string virtual_file, shadowing_disk_file; in MakeProtoProtoPathRelative() local 1264 switch (source_tree->DiskFileToVirtualFile(*proto, &virtual_file, in MakeProtoProtoPathRelative() 1267 *proto = virtual_file; in MakeProtoProtoPathRelative() 2152 const std::string& virtual_file = file.name(); in GenerateDependencyManifestFile() local 2155 source_tree->VirtualFileToDiskFile(virtual_file, &disk_file)) { in GenerateDependencyManifestFile() 2159 std::cerr << "Unable to identify path for file " << virtual_file in GenerateDependencyManifestFile()
|