Home
last modified time | relevance | path

Searched refs:test_util (Results 1 – 25 of 124) sorted by relevance

12345

/external/chromium_org/chrome/browser/chromeos/drive/file_system/
Dupdate_operation_unittest.cc40 google_apis::test_util::WriteStringToFile(kTestFile, kTestFileContent); in TEST_F()
53 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
54 test_util::RunBlockingPoolTask(); in TEST_F()
66 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
67 test_util::RunBlockingPoolTask(); in TEST_F()
78 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
79 test_util::RunBlockingPoolTask(); in TEST_F()
90 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
91 test_util::RunBlockingPoolTask(); in TEST_F()
102 google_apis::test_util::CreateCopyResultCallback(&gdata_error, in TEST_F()
[all …]
Dcreate_file_operation_unittest.cc38 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
39 test_util::RunBlockingPoolTask(); in TEST_F()
47 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
48 test_util::RunBlockingPoolTask(); in TEST_F()
56 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
57 test_util::RunBlockingPoolTask(); in TEST_F()
65 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
66 test_util::RunBlockingPoolTask(); in TEST_F()
74 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
75 test_util::RunBlockingPoolTask(); in TEST_F()
[all …]
Dcreate_directory_operation_unittest.cc49 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
50 test_util::RunBlockingPoolTask(); in TEST_F()
63 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
64 test_util::RunBlockingPoolTask(); in TEST_F()
72 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
73 test_util::RunBlockingPoolTask(); in TEST_F()
82 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
83 test_util::RunBlockingPoolTask(); in TEST_F()
90 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
91 test_util::RunBlockingPoolTask(); in TEST_F()
[all …]
Ddownload_operation_unittest.cc53 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
55 test_util::RunBlockingPoolTask(); in TEST_F()
90 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
92 test_util::RunBlockingPoolTask(); in TEST_F()
119 ASSERT_TRUE(google_apis::test_util::WriteStringToFile(tmp_file, content)); in TEST_F()
129 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
130 test_util::RunBlockingPoolTask(); in TEST_F()
140 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
142 test_util::RunBlockingPoolTask(); in TEST_F()
163 google_apis::test_util::CreateCopyResultCallback(&result)); in TEST_F()
[all …]
Doperation_test_base.cc61 test_util::RegisterDrivePrefs(pref_service_->registry()); in SetUp()
84 google_apis::test_util::CreateCopyResultCallback(&success)); in SetUp()
85 test_util::RunBlockingPoolTask(); in SetUp()
97 google_apis::test_util::CreateCopyResultCallback(&error)); in SetUp()
98 test_util::RunBlockingPoolTask(); in SetUp()
112 google_apis::test_util::CreateCopyResultCallback(&success)); in SetUp()
113 test_util::RunBlockingPoolTask(); in SetUp()
124 google_apis::test_util::CreateCopyResultCallback(&error)); in SetUp()
125 test_util::RunBlockingPoolTask(); in SetUp()
137 base::Bind(google_apis::test_util::CreateCopyResultCallback(&error))); in GetLocalResourceEntry()
[all …]
Dcopy_operation_unittest.cc42 google_apis::test_util::WriteStringToFile(local_src_path, "hello")); in TEST_F()
53 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
54 test_util::RunBlockingPoolTask(); in TEST_F()
71 google_apis::test_util::CreateCopyResultCallback(&found)); in TEST_F()
72 test_util::RunBlockingPoolTask(); in TEST_F()
91 google_apis::test_util::WriteStringToFile(local_src_path, in TEST_F()
102 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
103 test_util::RunBlockingPoolTask(); in TEST_F()
114 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
115 test_util::RunBlockingPoolTask(); in TEST_F()
[all …]
Dtruncate_operation_unittest.cc45 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
46 test_util::RunBlockingPoolTask(); in TEST_F()
57 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
58 test_util::RunBlockingPoolTask(); in TEST_F()
80 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
81 test_util::RunBlockingPoolTask(); in TEST_F()
93 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
94 test_util::RunBlockingPoolTask(); in TEST_F()
108 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
109 test_util::RunBlockingPoolTask(); in TEST_F()
[all …]
Dremove_operation_unittest.cc33 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
34 test_util::RunBlockingPoolTask(); in TEST_F()
49 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
50 test_util::RunBlockingPoolTask(); in TEST_F()
66 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
67 test_util::RunBlockingPoolTask(); in TEST_F()
96 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
97 test_util::RunBlockingPoolTask(); in TEST_F()
107 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
108 test_util::RunBlockingPoolTask(); in TEST_F()
[all …]
Dopen_file_operation_unittest.cc50 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
52 test_util::RunBlockingPoolTask(); in TEST_F()
78 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
80 test_util::RunBlockingPoolTask(); in TEST_F()
98 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
100 test_util::RunBlockingPoolTask(); in TEST_F()
117 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
119 test_util::RunBlockingPoolTask(); in TEST_F()
151 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
153 test_util::RunBlockingPoolTask(); in TEST_F()
[all …]
Dmove_operation_unittest.cc51 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
52 test_util::RunBlockingPoolTask(); in TEST_F()
81 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
82 test_util::RunBlockingPoolTask(); in TEST_F()
117 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
118 test_util::RunBlockingPoolTask(); in TEST_F()
130 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
131 test_util::RunBlockingPoolTask(); in TEST_F()
157 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
158 test_util::RunBlockingPoolTask(); in TEST_F()
[all …]
Dsearch_operation_unittest.cc44 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
46 test_util::RunBlockingPoolTask(); in TEST_F()
66 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
68 test_util::RunBlockingPoolTask(); in TEST_F()
84 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
86 test_util::RunBlockingPoolTask(); in TEST_F()
108 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
110 test_util::RunBlockingPoolTask(); in TEST_F()
131 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
133 test_util::RunBlockingPoolTask(); in TEST_F()
Dget_file_for_saving_operation_unittest.cc85 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
87 test_util::RunBlockingPoolTask(); in TEST_F()
104 google_apis::test_util::CreateCopyResultCallback(&success)); in TEST_F()
105 test_util::RunBlockingPoolTask(); in TEST_F()
114 google_apis::test_util::WriteStringToFile(local_path, "hello"); in TEST_F()
132 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
134 test_util::RunBlockingPoolTask(); in TEST_F()
156 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
158 test_util::RunBlockingPoolTask(); in TEST_F()
/external/chromium_org/chrome/browser/chromeos/drive/sync/
Dremove_performer_unittest.cc30 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
31 test_util::RunBlockingPoolTask(); in TEST_F()
40 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
41 test_util::RunBlockingPoolTask(); in TEST_F()
49 google_apis::test_util::CreateCopyResultCallback(&gdata_error, in TEST_F()
51 test_util::RunBlockingPoolTask(); in TEST_F()
58 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
59 test_util::RunBlockingPoolTask(); in TEST_F()
81 google_apis::test_util::CreateCopyResultCallback(&gdata_error, in TEST_F()
83 test_util::RunBlockingPoolTask(); in TEST_F()
[all …]
Dentry_revert_performer_unittest.cc49 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
50 test_util::RunBlockingPoolTask(); in TEST_F()
57 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
58 test_util::RunBlockingPoolTask(); in TEST_F()
90 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
91 test_util::RunBlockingPoolTask(); in TEST_F()
98 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
99 test_util::RunBlockingPoolTask(); in TEST_F()
121 google_apis::test_util::CreateCopyResultCallback(&gdata_error)); in TEST_F()
122 test_util::RunBlockingPoolTask(); in TEST_F()
[all …]
/external/chromium_org/google_apis/drive/
Dgdata_wapi_requests_unittest.cc58 base::Bind(&test_util::HandleDownloadFileRequest, in SetUp()
77 GURL test_base_url = test_util::GetBaseUrlForTesting(test_server_.port()); in SetUp()
99 test_util::CreateHttpResponseFromFile( in HandleResourceFeedRequest()
100 test_util::GetTestFilePath("gdata/file_entry.json"))); in HandleResourceFeedRequest()
104 if (!test_util::RemovePrefix(absolute_url.path(), in HandleResourceFeedRequest()
113 test_util::CreateHttpResponseFromFile( in HandleResourceFeedRequest()
114 test_util::GetTestFilePath("gdata/root_feed.json"))); in HandleResourceFeedRequest()
122 test_util::CreateHttpResponseFromFile( in HandleResourceFeedRequest()
123 test_util::GetTestFilePath("gdata/file_entry.json"))); in HandleResourceFeedRequest()
131 test_util::CreateHttpResponseFromFile( in HandleResourceFeedRequest()
[all …]
Ddrive_api_requests_unittest.cc96 GURL test_base_url = test_util::GetBaseUrlForTesting(test_server_.port()); in SetUp()
178 return test_util::CreateHttpResponseFromFile( in HandleDataFileRequest()
286 if (!test_util::ParseContentRangeHeader( in HandleResumeUploadRequest()
319 test_util::CreateHttpResponseFromFile( in HandleResumeUploadRequest()
320 test_util::GetTestFilePath("drive/file_entry.json")); in HandleResumeUploadRequest()
358 if (!test_util::RemovePrefix(absolute_url.path(), in HandleDownloadRequest()
383 expected_data_file_path_ = test_util::GetTestFilePath( in TEST_F()
394 test_util::CreateQuitCallback( in TEST_F()
396 test_util::CreateCopyResultCallback(&error, &about_resource))); in TEST_F()
412 *test_util::LoadJSONFile("drive/about.json"))); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/drive/
Dfake_drive_service_unittest.cc41 namespace test_util = google_apis::test_util;
55 test_util::CreateCopyResultCallback(&error, &resource_entry)); in FindEntry()
75 test_util::CreateCopyResultCallback(&error, &resource_entry)); in AddNewDirectory()
99 test_util::CreateCopyResultCallback(&error, &about_resource)); in GetLargestChangeByAboutResource()
115 test_util::CreateCopyResultCallback(&error, &resource_list)); in TEST_F()
133 test_util::CreateCopyResultCallback(&error, &resource_list)); in TEST_F()
148 test_util::CreateCopyResultCallback(&error, &resource_list)); in TEST_F()
166 test_util::CreateCopyResultCallback(&error, &resource_list)); in TEST_F()
186 test_util::CreateCopyResultCallback(&error, &resource_list)); in TEST_F()
201 test_util::CreateCopyResultCallback(&error, &resource_list)); in TEST_F()
[all …]
Ddrive_uploader_unittest.cc36 namespace test_util = google_apis::test_util;
320 ASSERT_TRUE(test_util::CreateFileOfSpecifiedSize( in TEST_F()
330 std::vector<test_util::ProgressInfo> upload_progress_values; in TEST_F()
336 test_util::CreateCopyResultCallback( in TEST_F()
338 base::Bind(&test_util::AppendProgressCallbackResult, in TEST_F()
349 EXPECT_EQ(test_util::ProgressInfo(0, 0), upload_progress_values[0]); in TEST_F()
355 ASSERT_TRUE(test_util::CreateFileOfSpecifiedSize( in TEST_F()
365 std::vector<test_util::ProgressInfo> upload_progress_values; in TEST_F()
371 test_util::CreateCopyResultCallback( in TEST_F()
373 base::Bind(&test_util::AppendProgressCallbackResult, in TEST_F()
[all …]
/external/protobuf/python/google/protobuf/internal/
Dmessage_test.py49 from google.protobuf.internal import test_util
55 golden_data = test_util.GoldenFile('golden_message').read()
58 test_util.ExpectAllFieldsSet(self, golden_message)
62 golden_data = test_util.GoldenFile('golden_message').read()
66 test_util.SetAllExtensions(all_set)
71 golden_data = test_util.GoldenFile('golden_packed_fields_message').read()
75 test_util.SetAllPackedFields(all_set)
80 golden_data = test_util.GoldenFile('golden_packed_fields_message').read()
84 test_util.SetAllPackedExtensions(all_set)
/external/chromium_org/chrome/browser/chromeos/drive/
Dfake_file_system_unittest.cc16 namespace test_util { namespace
42 google_apis::test_util::TestGetContentCallback get_content_callback; in TEST_F()
51 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
54 google_apis::test_util::CreateCopyResultCallback(&completion_error)); in TEST_F()
77 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
80 google_apis::test_util::CreateCopyResultCallback(&completion_error)); in TEST_F()
104 google_apis::test_util::TestGetContentCallback get_content_callback; in TEST_F()
110 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
113 google_apis::test_util::CreateCopyResultCallback(&completion_error)); in TEST_F()
125 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in TEST_F()
[all …]
Ddownload_handler_unittest.cc84 google_apis::test_util::CreateCopyResultCallback(&substituted_path)); in TEST_F()
85 test_util::RunBlockingPoolTask(); in TEST_F()
104 google_apis::test_util::CreateCopyResultCallback(&substituted_path)); in TEST_F()
105 test_util::RunBlockingPoolTask(); in TEST_F()
126 google_apis::test_util::CreateCopyResultCallback(&substituted_path)); in TEST_F()
127 test_util::RunBlockingPoolTask(); in TEST_F()
145 google_apis::test_util::CreateCopyResultCallback(&substituted_path)); in TEST_F()
146 test_util::RunBlockingPoolTask(); in TEST_F()
178 google_apis::test_util::CreateCopyResultCallback(&file_exists)); in TEST_F()
179 test_util::RunBlockingPoolTask(); in TEST_F()
[all …]
Dfile_system_unittest.cc82 test_util::RegisterDrivePrefs(pref_service_->registry()); in SetUp()
143 google_apis::test_util::CreateCopyResultCallback(&error)); in LoadFullResourceList()
144 test_util::RunBlockingPoolTask(); in LoadFullResourceList()
155 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in GetResourceEntrySync()
156 test_util::RunBlockingPoolTask(); in GetResourceEntrySync()
168 google_apis::test_util::CreateCopyResultCallback(&error, &entries)); in ReadDirectorySync()
169 test_util::RunBlockingPoolTask(); in ReadDirectorySync()
197 test_util::DestroyHelperForTests> metadata_storage( in SetUpTestFileSystem()
201 scoped_ptr<internal::ResourceMetadata, test_util::DestroyHelperForTests> in SetUpTestFileSystem()
284 test_util::DestroyHelperForTests> metadata_storage_;
[all …]
Djob_scheduler_unittest.cc129 test_util::RegisterDrivePrefs(pref_service_->registry()); in JobSchedulerTest()
134 new test_util::FakeNetworkChangeNotifier); in SetUp()
183 scoped_ptr<test_util::FakeNetworkChangeNotifier>
195 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
209 google_apis::test_util::CreateCopyResultCallback(&error, &app_list)); in TEST_F()
223 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
239 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
255 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
276 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
286 google_apis::test_util::CreateCopyResultCallback( in TEST_F()
[all …]
Dchange_list_loader_unittest.cc77 test_util::RegisterDrivePrefs(pref_service_->registry()); in SetUp()
119 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in AddNewFile()
131 test_util::DestroyHelperForTests> metadata_storage_;
132 scoped_ptr<ResourceMetadata, test_util::DestroyHelperForTests> metadata_;
133 scoped_ptr<FileCache, test_util::DestroyHelperForTests> cache_;
148 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
173 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
191 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
214 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
247 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
[all …]
/external/chromium_org/sync/engine/
Dsync_scheduler_unittest.cc280 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateNormalSuccess), in TEST_F()
296 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateNormalSuccess), in TEST_F()
309 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureSuccess), in TEST_F()
339 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureFailed), in TEST_F()
341 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureFailed), in TEST_F()
366 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureSuccess), in TEST_F()
387 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureFailed), in TEST_F()
418 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureFailed), in TEST_F()
436 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureFailed), in TEST_F()
448 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureSuccess), in TEST_F()
[all …]

12345