Searched defs:test_file (Results 1 - 25 of 39) sorted by path

12

/external/chromium_org/base/files/
H A Dfile_path_watcher_browsertest.cc165 FilePath test_file() { function in class:base::__anon2250::FilePathWatcherTest
218 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), false));
220 ASSERT_TRUE(WriteFile(test_file(), "content"));
227 ASSERT_TRUE(WriteFile(test_file(), "content"));
231 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), false));
234 ASSERT_TRUE(WriteFile(test_file(), "new content"));
246 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), false));
249 ASSERT_TRUE(base::Move(source_file, test_file()));
255 ASSERT_TRUE(WriteFile(test_file(), "content"));
259 ASSERT_TRUE(SetupWatch(test_file(),
[all...]
/external/chromium_org/chrome/browser/apps/
H A Dapp_browsertest_util.cc189 void PlatformAppBrowserTest::SetCommandLineArg(const std::string& test_file) { argument
192 base::FilePath test_doc(test_data_dir_.AppendASCII(test_file));
/external/chromium_org/chrome/browser/chromeos/drive/
H A Dlocal_file_reader_unittest.cc71 base::FilePath test_file; local
74 temp_dir_.path(), 1024, &test_file, &expected_content));
77 file_reader_->Open(test_file, 0, callback.callback());
87 base::FilePath test_file; local
90 temp_dir_.path(), 1024, &test_file, &expected_content));
97 test_file, static_cast<int64>(offset), callback.callback());
/external/chromium_org/chrome/browser/component_updater/test/
H A Dcomponent_updater_service_unittest.cc92 const base::FilePath ComponentUpdaterTest::test_file(const char* file) { function in class:component_updater::ComponentUpdaterTest
177 new PartialMatch("updatecheck"), test_file("updatecheck_reply_1.xml")));
179 new PartialMatch("updatecheck"), test_file("updatecheck_reply_1.xml")));
231 new PartialMatch("updatecheck"), test_file("updatecheck_reply_empty")));
233 new PartialMatch("updatecheck"), test_file("updatecheck_reply_empty")));
315 new PartialMatch("updatecheck"), test_file("updatecheck_reply_1.xml")));
318 new PartialMatch("updatecheck"), test_file("updatecheck_reply_1.xml")));
322 test_file("jebgalgnebhfojomionfpkfelancnnkf.crx"));
425 new PartialMatch("updatecheck"), test_file("updatecheck_reply_2.xml")));
429 test_file("jebgalgnebhfojomionfpkfelancnnk
[all...]
/external/chromium_org/chrome/browser/extensions/api/file_system/
H A Dfile_system_apitest.cc146 base::FilePath test_file = test_root_folder_.AppendASCII("gold.txt"); local
148 &test_file);
158 base::FilePath test_file = test_root_folder_.AppendASCII("gold.txt"); local
160 &test_file);
173 base::FilePath test_file = test_path.AppendASCII("gold.txt"); local
175 EXPECT_TRUE(base::CopyFile(source, test_file));
178 &test_file);
185 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
186 ASSERT_FALSE(test_file.empty());
188 &test_file);
196 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
213 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
234 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
246 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
271 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
283 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
296 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
309 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
324 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
339 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
354 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
373 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
389 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
406 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
417 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
428 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
464 base::FilePath test_file = TempFilePath("save_new.txt", false); local
474 base::FilePath test_file = TempFilePath("save_existing.txt", true); local
485 base::FilePath test_file = TempFilePath("save_new.txt", false); local
496 base::FilePath test_file = TempFilePath("save_existing.txt", true); local
529 base::FilePath test_file = TempFilePath("writable.txt", true); local
539 base::FilePath test_file = TempFilePath("writable.txt", true); local
549 base::FilePath test_file = TempFilePath("writable.txt", true); local
558 base::FilePath test_file = TempFilePath("writable.txt", true); local
568 base::FilePath test_file = TempFilePath("writable.txt", true); local
578 base::FilePath test_file = TempFilePath("writable.txt", true); local
593 base::FilePath test_file = TempFilePath("open_existing.txt", true); local
609 base::FilePath test_file = TempFilePath("writable.txt", true); local
623 base::FilePath test_file = TempFilePath("writable.txt", true); local
[all...]
H A Dfile_system_apitest_chromeos.cc124 base::FilePath test_file = drive::util::GetDriveMountPointPath( local
127 &test_file);
134 base::FilePath test_file = drive::util::GetDriveMountPointPath( local
137 &test_file);
144 base::FilePath test_file = drive::util::GetDriveMountPointPath( local
147 chrome::DIR_USER_DOCUMENTS, test_file.DirName(), true, false));
218 base::FilePath test_file = drive::util::GetDriveMountPointPath( local
221 &test_file);
228 base::FilePath test_file = drive::util::GetDriveMountPointPath( local
231 &test_file);
238 base::FilePath test_file = drive::util::GetDriveMountPointPath( local
248 base::FilePath test_file = drive::util::GetDriveMountPointPath( local
[all...]
/external/chromium_org/chrome/browser/extensions/api/log_private/
H A Dlog_private_apitest_chromeos.cc28 explicit TestDebugDaemonClient(const base::FilePath& test_file) argument
29 : test_file_(test_file) {}
/external/chromium_org/chrome/browser/extensions/
H A Dchrome_info_map_unittest.cc22 const std::string& test_file) {
25 path = path.AppendASCII("extensions").AppendASCII(dir).AppendASCII(test_file);
21 LoadManifest(const std::string& dir, const std::string& test_file) argument
H A Dconvert_user_script_unittest.cc39 base::FilePath test_file; local
40 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_file));
41 test_file = test_file.AppendASCII("extensions")
46 test_file, GURL("http://www.google.com/foo"),
92 base::FilePath test_file; local
93 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_file));
94 test_file = test_file.AppendASCII("extensions")
99 test_file, GUR
141 base::FilePath test_file; local
159 base::FilePath test_file; local
194 base::FilePath test_file; local
229 base::FilePath test_file; local
[all...]
H A Dextension_action_icon_factory_unittest.cc102 base::FilePath test_file; local
103 if (!PathService::Get(chrome::DIR_TEST_DATA, &test_file)) {
107 test_file = test_file.AppendASCII("extensions/api_test").AppendASCII(name);
110 JSONFileValueSerializer serializer(test_file.AppendASCII("manifest.json"));
123 Extension::Create(test_file, location, *valid_value,
H A Dextension_startup_browsertest.cc149 base::FilePath test_file; local
150 PathService::Get(chrome::DIR_TEST_DATA, &test_file);
151 test_file = test_file.AppendASCII("extensions")
152 .AppendASCII("test_file.html");
154 ui_test_utils::NavigateToURL(browser(), net::FilePathToFileURL(test_file));
/external/chromium_org/chrome/browser/extensions/docs/examples/apps/
H A Dcalculator_browsertest.cc20 base::FilePath test_file; local
21 PathService::Get(chrome::DIR_TEST_DATA, &test_file);
22 test_file = test_file.DirName().DirName()
27 ui_test_utils::NavigateToURL(browser(), net::FilePathToFileURL(test_file));
/external/chromium_org/chrome/browser/media_galleries/fileapi/
H A Dmedia_file_validator_browsertest.cc60 base::FilePath test_file; local
61 if (!PathService::Get(base::DIR_SOURCE_ROOT, &test_file))
63 return test_file.AppendASCII("media").AppendASCII("test").AppendASCII("data");
125 base::FilePath test_file = src_path.AppendASCII(filename); local
127 base::WriteFile(test_file, content.data(), test_file_size_));
267 base::FilePath test_file = GetMediaTestDir(); local
268 ASSERT_FALSE(test_file.empty());
269 test_file = test_file.AppendASCII("sfx.ogg");
270 MoveTestFromFile("sfx.ogg", test_file, tru
274 base::FilePath test_file = GetMediaTestDir(); local
281 base::FilePath test_file = GetMediaTestDir(); local
[all...]
/external/chromium_org/chrome/browser/prerender/
H A Dprerender_browsertest.cc4071 base::FilePath test_file = GetTestPath("prerender_session_storage.html"); local
4076 kTestURL, test_file, counter.AsWeakPtr()));
4121 base::FilePath test_file = GetTestPath("prerender_session_storage.html"); local
4126 kTestURL, test_file, counter.AsWeakPtr()));
/external/chromium_org/chrome/browser/printing/
H A Dprint_dialog_cloud_unittest.cc52 base::FilePath test_file = test_data_directory.AppendASCII(kPDFTestFile); local
53 return test_file;
59 base::FilePath test_file = GetTestDataFileName(); local
60 base::ReadFileToString(test_file, &sTestFileData);
/external/chromium_org/chrome/browser/ui/views/
H A Dselect_file_dialog_extension_browsertest.cc268 base::FilePath test_file = local
272 FILE* fp = base::OpenFile(test_file, "w");
284 test_file, owning_window,
293 ASSERT_EQ(test_file, listener_->path());
301 base::FilePath test_file = local
312 test_file, owning_window,
321 ASSERT_EQ(test_file, listener_->path());
/external/chromium_org/chrome/common/extensions/
H A Dextension_test_util.cc22 const std::string& test_file,
31 .AppendASCII(test_file);
46 const std::string& test_file,
51 dir, test_file, location, extra_flags, std::string(), error);
55 const std::string& test_file,
60 LoadManifestUnchecked(dir, test_file, location, extra_flags, &error);
62 EXPECT_TRUE(extension.get()) << test_file << ":" << error;
67 const std::string& test_file,
69 return LoadManifest(dir, test_file, Manifest::INVALID_LOCATION, extra_flags);
73 const std::string& test_file) {
21 LoadManifestUnchecked(const std::string& dir, const std::string& test_file, Manifest::Location location, int extra_flags, const std::string& id, std::string* error) argument
45 LoadManifestUnchecked(const std::string& dir, const std::string& test_file, Manifest::Location location, int extra_flags, std::string* error) argument
54 LoadManifest(const std::string& dir, const std::string& test_file, Manifest::Location location, int extra_flags) argument
66 LoadManifest(const std::string& dir, const std::string& test_file, int extra_flags) argument
72 LoadManifestStrict(const std::string& dir, const std::string& test_file) argument
77 LoadManifest(const std::string& dir, const std::string& test_file) argument
[all...]
/external/chromium_org/chrome/installer/setup/
H A Dsetup_util_unittest.cc139 base::FilePath test_file; local
140 base::CreateTemporaryFileInDir(test_dir_.path(), &test_file);
141 ASSERT_TRUE(base::PathExists(test_file));
142 base::WriteFile(test_file, "foo", 3);
143 EXPECT_TRUE(installer::DeleteFileFromTempProcess(test_file, 0));
145 EXPECT_FALSE(base::PathExists(test_file));
/external/chromium_org/chrome/test/nacl/
H A Dnacl_browsertest_util.cc231 const base::FilePath::StringType& test_file) {
233 base::FilePath::StringType test_file_with_pnacl = test_file;
235 AddPnaclParm(test_file, &test_file_with_pnacl);
230 RunLoadTest( const base::FilePath::StringType& test_file) argument
/external/chromium_org/components/bookmarks/browser/
H A Dbookmark_codec_unittest.cc358 base::FilePath test_file = local
360 ASSERT_TRUE(base::PathExists(test_file));
362 JSONFileValueSerializer serializer(test_file);
445 base::FilePath test_file = local
447 ASSERT_TRUE(base::PathExists(test_file));
449 JSONFileValueSerializer serializer(test_file);
/external/chromium_org/components/component_updater/test/
H A Dcomponent_patcher_unittest.cc57 base::FilePath test_file(const char* file) { function in namespace:component_updater::__anon6388
80 test_file("binary_output.bin"),
104 test_file("binary_output.bin")));
110 test_file("binary_output.bin"),
134 test_file("binary_output.bin")));
140 test_file("binary_input.bin"),
142 EXPECT_TRUE(base::CopyFile(test_file("binary_courgette_patch.bin"),
169 test_file("binary_output.bin")));
175 test_file("binary_input.bin"),
178 test_file("binary_bsdiff_patc
[all...]
H A Dupdate_checker_unittest.cc29 base::FilePath test_file(const char* file) { function in namespace:component_updater::__anon6392
165 new PartialMatch("updatecheck"), test_file("updatecheck_reply_1.xml")));
/external/chromium_org/content/browser/download/
H A Dfile_metadata_unittest_linux.cc36 const base::FilePath& test_file() const { function in class:content::__anon7086::FileMetadataLinuxTest
67 ssize_t len = getxattr(test_file().value().c_str(), attr_name.c_str(),
73 len = getxattr(test_file().value().c_str(), attr_name.c_str(), buffer, len);
81 ssize_t len = listxattr(test_file().value().c_str(), NULL, 0);
84 len = listxattr(test_file().value().c_str(), buffer, len);
116 AddOriginMetadataToFile(test_file(), source_url(), referrer_url());
123 AddOriginMetadataToFile(test_file(), dummy_url, dummy_url);
124 AddOriginMetadataToFile(test_file(), source_url(), referrer_url());
132 AddOriginMetadataToFile(test_file(), invalid_url, referrer_url());
143 AddOriginMetadataToFile(test_file(), source_ur
[all...]
/external/chromium_org/content/browser/indexed_db/
H A Dindexed_db_browsertest.cc605 std::string test_file = s_corrupt_db_test_prefix + local
607 SimpleTest(embedded_test_server()->GetURL(test_file));
609 test_file = s_corrupt_db_test_prefix + "corrupted_open_db_recovery.html";
610 SimpleTest(embedded_test_server()->GetURL(test_file));
/external/chromium_org/extensions/browser/
H A Dextension_icon_image_unittest.cc145 base::FilePath test_file; local
146 if (!PathService::Get(DIR_TEST_DATA, &test_file)) {
150 test_file = test_file.AppendASCII(name);
153 JSONFileValueSerializer serializer(test_file.AppendASCII("manifest.json"));
165 return Extension::Create(test_file, location, *valid_value,

Completed in 561 milliseconds

12