Home
last modified time | relevance | path

Searched refs:test_file (Results 1 – 25 of 45) sorted by relevance

12

/external/libchrome/base/files/
Dfile_path_watcher_unittest.cc178 FilePath test_file() { in test_file() function in base::__anond354078d0111::FilePathWatcherTest
231 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), false)); in TEST_F()
233 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
240 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
244 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), false)); in TEST_F()
247 ASSERT_TRUE(WriteFile(test_file(), "new content")); in TEST_F()
259 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), false)); in TEST_F()
262 ASSERT_TRUE(base::Move(source_file, test_file())); in TEST_F()
268 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
272 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), false)); in TEST_F()
[all …]
/external/autotest/client/site_tests/audio_SeekAudioFeedback/
Daudio_SeekAudioFeedback.py25 def run_once(self, test_file, test_duration): argument
42 self.rms_test(tab, test_file, noiseprof_file.name, test_duration)
46 def rms_test(self, tab, test_file, noiseprof_file, test_duration): argument
47 logging.info('rms test on media file %s.', test_file)
54 self.play_media(tab, test_file, x)
75 self._rms_values['%s_rms_value' % test_file.replace('.', '_')]=rms
85 def play_media(self, tab, test_file, value): argument
91 tab.EvaluateJavaScript('play("%s")' % test_file)
/external/google-breakpad/src/common/linux/
Dmemory_mapped_file_unittest.cc86 string test_file = temp_dir.path() + "/empty_file"; in TEST_F() local
87 ASSERT_TRUE(WriteFile(test_file.c_str(), NULL, 0)); in TEST_F()
90 MemoryMappedFile mapped_file(test_file.c_str(), 0); in TEST_F()
95 EXPECT_TRUE(mapped_file.Map(test_file.c_str(), 0)); in TEST_F()
108 string test_file = temp_dir.path() + "/test_file"; in TEST_F() local
109 ASSERT_TRUE(WriteFile(test_file.c_str(), data, data_size)); in TEST_F()
112 MemoryMappedFile mapped_file(test_file.c_str(), 0); in TEST_F()
120 EXPECT_TRUE(mapped_file.Map(test_file.c_str(), 0)); in TEST_F()
/external/autotest/server/site_tests/android_ACTS/
Dandroid_ACTS.py53 test_case=None, test_file=None): argument
72 if test_file:
73 self.fetch_file(test_file, TEST_CAMPAIGN_FILE_FOLDER)
80 elif test_file:
82 os.path.join(self.ts_tempfolder, os.path.basename(test_file)))
/external/webrtc/webrtc/modules/audio_processing/transient/
Dwpd_tree_unittest.cc126 rtc::scoped_ptr<FileWrapper> test_file(FileWrapper::Create()); in TEST() local
128 test_file->OpenFile(test_file_name.c_str(), in TEST()
133 bool file_opened = test_file->Open(); in TEST()
146 size_t file_samples_read = ReadInt16FromFileToFloatBuffer(test_file.get(), in TEST()
188 file_samples_read = ReadInt16FromFileToFloatBuffer(test_file.get(), in TEST()
199 test_file->CloseFile(); in TEST()
/external/pdfium/core/src/fpdfapi/fpdf_parser/
Dfpdf_parser_parser_unittest.cpp250 std::string test_file; in TEST() local
252 &test_file)); in TEST()
253 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file; in TEST()
266 std::string test_file; in TEST() local
268 "parser_rebuildxref_error_notrailer.pdf", &test_file)); in TEST()
269 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file; in TEST()
/external/autotest/client/site_tests/security_Minijail0/src/
Dmountns-enter.py16 test_file = os.path.join(tmpdir, "test") variable
17 with open(test_file, "w") as t:
22 sys.executable, child_path, test_file])
Dmountns-enter-child.py9 test_file = sys.argv[1] variable
12 if os.access(test_file, os.F_OK):
/external/autotest/client/site_tests/login_Cryptohome/
Dlogin_Cryptohome.py38 test_file = os.path.join(cryptohome.user_path(TEST_USER), 'hello')
39 open(test_file, 'w').close()
46 if os.path.exists(test_file):
/external/autotest/client/site_tests/audio_CrasSanity/
Daudio_CrasSanity.py61 for test_file in self._audio:
62 url = _DOWNLOAD_BASE + 'audio_test/' + test_file
67 for test_file in self._video:
68 url = _DOWNLOAD_BASE + 'traffic/' + test_file
/external/autotest/client/common_lib/
Dbase_utils_unittest.py62 test_file = StringIO.StringIO(contents)
63 base_utils.open.expect_call("filename", "r").and_return(test_file)
114 test_file = mock.SaveDataAfterCloseStringIO()
115 base_utils.open.expect_call("filename", "w").and_return(test_file)
118 return test_file.final_data
153 test_file = mock.SaveDataAfterCloseStringIO()
154 base_utils.open.expect_call("filename", "w").and_return(test_file)
157 self.assertEqual(data, test_file.final_data)
173 test_file = StringIO.StringIO(contents)
175 base_utils.open.expect_call(filename).and_return(test_file)
[all …]
/external/webrtc/webrtc/modules/video_coding/codecs/tools/
Dvideo_quality_measurement.cc156 FILE* test_file; in HandleCommandLineFlags() local
157 test_file = fopen(FLAGS_input_filename.c_str(), "rb"); in HandleCommandLineFlags()
158 if (test_file == NULL) { in HandleCommandLineFlags()
163 fclose(test_file); in HandleCommandLineFlags()
196 test_file = fopen(config->output_filename.c_str(), "wb"); in HandleCommandLineFlags()
197 if (test_file == NULL) { in HandleCommandLineFlags()
202 fclose(test_file); in HandleCommandLineFlags()
/external/autotest/client/site_tests/audio_PlaybackPower/
Daudio_PlaybackPower.py80 def run_once(self, test_file, checksum): argument
81 local_path = os.path.join(self.bindir, '%s' % test_file)
82 file_utils.download_file(_DOWNLOAD_BASE + test_file, local_path)
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/gs/
Dtest_resumable_uploads.py384 test_file = self.build_input_file(test_file_size)[1]
385 harness = CallbackTestHarness(fp_to_change=test_file,
391 test_file, cb=harness.call,
411 test_file, cb=harness.call,
417 test_file.seek(0, os.SEEK_END)
418 self.assertEqual(test_file_size, test_file.tell())
444 test_file = self.build_input_file(test_file_size)[1]
447 fp_to_change=test_file,
/external/chromium-trace/catapult/third_party/closure_linter/closure_linter/
Dnot_strict_test.py66 for test_file in test_files:
67 resource_path = os.path.join(_RESOURCE_PREFIX, test_file)
Dfull_test.py112 for test_file in test_files:
113 resource_path = os.path.join(_RESOURCE_PREFIX, test_file)
/external/autotest/client/site_tests/firmware_TouchMTB/tests/
Dcommon_unittest_utils.py44 with open(filepath) as test_file:
45 return mtb.MtbParser().parse(test_file)
/external/autotest/server/site_tests/audio_MediaBasicVerification/
Dcontrol.test_wav25 test_file = ('http://commondatastorage.googleapis.com/chromiumos-test-assets-'
31 audio_test_file=test_file)
Dcontrol.test_m4a25 test_file = ('http://commondatastorage.googleapis.com/chromiumos-test-assets-'
31 audio_test_file=test_file)
Dcontrol.test_mp325 test_file = ('http://commondatastorage.googleapis.com/chromiumos-test-assets-'
31 audio_test_file=test_file)
/external/autotest/client/bin/
Dfsinfo_unittest.py20 test_file = StringIO.StringIO(contents)
21 fsinfo.open.expect_call(filename, 'r').and_return(test_file)
/external/autotest/server/site_tests/audio_AudioQualityAfterSuspend/
Dcontrol.headphone_mp329 test_file = ('http://commondatastorage.googleapis.com/chromiumos-test-assets-'
37 test_playback_file=test_file,
Dcontrol.internal_speaker_mp330 test_file = ('http://commondatastorage.googleapis.com/chromiumos-test-assets-'
38 test_playback_file=test_file,
Dcontrol.internal_speaker_wav30 test_file = ('http://commondatastorage.googleapis.com/chromiumos-test-assets-'
38 test_playback_file=test_file,
Dcontrol.internal_speaker_m4a30 test_file = ('http://commondatastorage.googleapis.com/chromiumos-test-assets-'
38 test_playback_file=test_file,

12