/external/chromium_org/chrome/browser/drive/ |
D | fake_drive_service_unittest.cc | 45 namespace test_util { namespace 47 using google_apis::test_util::AppendProgressCallbackResult; 48 using google_apis::test_util::CreateCopyResultCallback; 49 using google_apis::test_util::ProgressInfo; 50 using google_apis::test_util::TestGetContentCallback; 51 using google_apis::test_util::WriteStringToFile; 64 resource_id, test_util::CreateCopyResultCallback(&error, &entry)); in FindEntry() 85 test_util::CreateCopyResultCallback(&error, &entry)); in AddNewDirectory() 107 test_util::CreateCopyResultCallback(&error, &about_resource)); in GetLargestChangeByAboutResource() 117 ASSERT_TRUE(test_util::SetUpTestEntries(&fake_service_)); in TEST_F() [all …]
|
D | test_util.cc | 19 namespace test_util { namespace 32 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in SetUpTestEntries() 44 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in SetUpTestEntries() 56 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in SetUpTestEntries() 68 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in SetUpTestEntries() 80 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in SetUpTestEntries() 92 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in SetUpTestEntries() 104 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in SetUpTestEntries() 116 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in SetUpTestEntries() 126 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in SetUpTestEntries() [all …]
|
D | drive_uploader_unittest.cc | 37 namespace test_util = google_apis::test_util; 323 ASSERT_TRUE(test_util::CreateFileOfSpecifiedSize( in TEST_F() 333 std::vector<test_util::ProgressInfo> upload_progress_values; in TEST_F() 339 test_util::CreateCopyResultCallback( in TEST_F() 341 base::Bind(&test_util::AppendProgressCallbackResult, in TEST_F() 352 EXPECT_EQ(test_util::ProgressInfo(0, 0), upload_progress_values[0]); in TEST_F() 358 ASSERT_TRUE(test_util::CreateFileOfSpecifiedSize( in TEST_F() 368 std::vector<test_util::ProgressInfo> upload_progress_values; in TEST_F() 374 test_util::CreateCopyResultCallback( in TEST_F() 376 base::Bind(&test_util::AppendProgressCallbackResult, in TEST_F() [all …]
|
/external/chromium_org/google_apis/drive/ |
D | drive_api_requests_unittest.cc | 104 GURL test_base_url = test_util::GetBaseUrlForTesting(test_server_.port()); in SetUp() 186 return test_util::CreateHttpResponseFromFile( in HandleDataFileRequest() 294 if (!test_util::ParseContentRangeHeader( in HandleResumeUploadRequest() 327 test_util::CreateHttpResponseFromFile( in HandleResumeUploadRequest() 328 test_util::GetTestFilePath("drive/file_entry.json")); in HandleResumeUploadRequest() 366 if (!test_util::RemovePrefix(absolute_url.path(), in HandleDownloadRequest() 391 expected_data_file_path_ = test_util::GetTestFilePath( in TEST_F() 402 test_util::CreateQuitCallback( in TEST_F() 404 test_util::CreateCopyResultCallback(&error, &about_resource))); in TEST_F() 420 *test_util::LoadJSONFile("drive/about.json"))); in TEST_F() [all …]
|
D | gdata_wapi_requests_unittest.cc | 43 GURL test_base_url = test_util::GetBaseUrlForTesting(test_server_.port()); in SetUp() 56 if (!test_util::RemovePrefix(absolute_url.path(), in HandleResourceFeedRequest() 67 test_util::CreateHttpResponseFromFile( in HandleResourceFeedRequest() 68 test_util::GetTestFilePath("gdata/file_entry.json"))); in HandleResourceFeedRequest() 76 test_util::CreateHttpResponseFromFile( in HandleResourceFeedRequest() 77 test_util::GetTestFilePath("drive/testfile.txt"))); in HandleResourceFeedRequest() 110 test_util::CreateQuitCallback( in TEST_F() 112 test_util::CreateCopyResultCallback(&result_code, &result_data))); in TEST_F() 138 test_util::CreateQuitCallback( in TEST_F() 140 test_util::CreateCopyResultCallback(&result_code, &result_data))); in TEST_F()
|
D | base_requests_server_unittest.cc | 50 base::Bind(&test_util::HandleDownloadFileRequest, in SetUp() 79 test_util::CreateQuitCallback( in TEST_F() 81 test_util::CreateCopyResultCallback(&result_code, &temp_file)), in TEST_F() 100 test_util::GetTestFilePath("drive/testfile.txt"); in TEST_F() 113 test_util::CreateQuitCallback( in TEST_F() 115 test_util::CreateCopyResultCallback(&result_code, &temp_file)), in TEST_F()
|
/external/protobuf/python/google/protobuf/internal/ |
D | message_test.py | 49 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/components/search_engines/ |
D | template_url_service_unittest.cc | 162 TemplateURLServiceTestUtil* test_util() { return test_util_.get(); } in test_util() function in TemplateURLServiceTest 267 test_util()->VerifyLoad(); in TEST_F() 272 test_util()->VerifyLoad(); in TEST_F() 298 test_util()->ResetModel(true); in TEST_F() 326 test_util()->ResetModel(true); in TEST_F() 338 test_util()->ResetModel(true); in TEST_F() 344 test_util()->VerifyLoad(); in TEST_F() 397 test_util()->VerifyLoad(); in TEST_F() 438 test_util()->VerifyLoad(); in TEST_F() 483 test_util()->VerifyLoad(); in TEST_F() [all …]
|
D | template_url_fetcher_unittest.cc | 60 TemplateURLServiceTestUtil* test_util() { return &test_util_; } in test_util() function in TemplateURLFetcherTest 158 test_util()->ChangeModelToLoadState(); in TEST_F() 159 ASSERT_FALSE(test_util()->model()->GetTemplateURLForKeyword(keyword)); in TEST_F() 171 const TemplateURL* t_url = test_util()->model()->GetTemplateURLForKeyword( in TEST_F() 176 test_util()->model()->search_terms_data())); in TEST_F() 183 test_util()->ChangeModelToLoadState(); in TEST_F() 184 ASSERT_FALSE(test_util()->model()->GetTemplateURLForKeyword(keyword)); in TEST_F() 224 test_util()->ChangeModelToLoadState(); in TEST_F() 225 ASSERT_FALSE(test_util()->model()->GetTemplateURLForKeyword(keyword)); in TEST_F() 240 test_util()->model()->search_terms_data())); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/chromeos/drive/ |
D | fake_file_system_unittest.cc | 17 namespace test_util { namespace 39 google_apis::test_util::TestGetContentCallback get_content_callback; in TEST_F() 48 google_apis::test_util::CreateCopyResultCallback( in TEST_F() 51 google_apis::test_util::CreateCopyResultCallback(&completion_error)); in TEST_F() 74 google_apis::test_util::CreateCopyResultCallback( in TEST_F() 77 google_apis::test_util::CreateCopyResultCallback(&completion_error)); in TEST_F() 101 google_apis::test_util::TestGetContentCallback get_content_callback; in TEST_F() 105 google_apis::test_util::CreateCopyResultCallback( in TEST_F() 108 google_apis::test_util::CreateCopyResultCallback(&completion_error)); in TEST_F() 120 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in TEST_F() [all …]
|
D | change_list_loader_unittest.cc | 78 test_util::RegisterDrivePrefs(pref_service_->registry()); in SetUp() 83 ASSERT_TRUE(test_util::SetUpTestEntries(drive_service_.get())); in SetUp() 125 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in AddNewFile() 138 test_util::DestroyHelperForTests> metadata_storage_; 139 scoped_ptr<FileCache, test_util::DestroyHelperForTests> cache_; 140 scoped_ptr<ResourceMetadata, test_util::DestroyHelperForTests> metadata_; 155 google_apis::test_util::CreateCopyResultCallback(error + 0, about + 0)); in TEST_F() 158 google_apis::test_util::CreateCopyResultCallback(error + 1, about + 1)); in TEST_F() 174 google_apis::test_util::CreateCopyResultCallback(error + 2, about + 2)); in TEST_F() 178 google_apis::test_util::CreateCopyResultCallback(error + 3, about + 3)); in TEST_F() [all …]
|
D | job_scheduler_unittest.cc | 132 test_util::RegisterDrivePrefs(pref_service_->registry()); in JobSchedulerTest() 137 new test_util::FakeNetworkChangeNotifier); in SetUp() 142 test_util::SetUpTestEntries(fake_drive_service_.get()); in SetUp() 185 scoped_ptr<test_util::FakeNetworkChangeNotifier> 198 google_apis::test_util::CreateCopyResultCallback( in TEST_F() 212 google_apis::test_util::CreateCopyResultCallback(&error, &app_list)); in TEST_F() 226 google_apis::test_util::CreateCopyResultCallback(&error, &file_list)); in TEST_F() 241 google_apis::test_util::CreateCopyResultCallback(&error, &file_list)); in TEST_F() 256 google_apis::test_util::CreateCopyResultCallback(&error, &file_list)); in TEST_F() 278 google_apis::test_util::CreateCopyResultCallback( in TEST_F() [all …]
|
D | drive_file_stream_reader_unittest.cc | 50 ASSERT_TRUE(google_apis::test_util::CreateFileOfSpecifiedSize( in SetUp() 79 ASSERT_EQ(net::OK, test_util::ReadAllData(&proxy, &content)); in TEST_F() 100 ASSERT_EQ(net::OK, test_util::ReadAllData(&proxy, &content)); in TEST_F() 303 ASSERT_TRUE(test_util::SetUpTestEntries(fake_drive_service_.get())); in SetUp() 307 new test_util::FakeFileSystem(fake_drive_service_.get())); in SetUp() 324 scoped_ptr<test_util::FakeFileSystem> fake_file_system_; 343 google_apis::test_util::CreateQuitCallback( in TEST_F() 345 google_apis::test_util::CreateCopyResultCallback(&error, &entry))); in TEST_F() 355 ASSERT_EQ(net::OK, test_util::ReadAllData(reader.get(), &first_content)); in TEST_F() 371 google_apis::test_util::CreateQuitCallback( in TEST_F() [all …]
|
D | file_system_unittest.cc | 92 test_util::RegisterDrivePrefs(pref_service_->registry()); in SetUp() 96 test_util::SetUpTestEntries(fake_drive_service_.get()); in SetUp() 153 google_apis::test_util::CreateCopyResultCallback(&error)); in LoadFullResourceList() 165 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in GetResourceEntrySync() 179 google_apis::test_util::CreateCopyResultCallback(&error)); in ReadDirectorySync() 217 test_util::DestroyHelperForTests> metadata_storage( in SetUpTestFileSystem() 222 scoped_ptr<internal::FileCache, test_util::DestroyHelperForTests> cache( in SetUpTestFileSystem() 228 scoped_ptr<internal::ResourceMetadata, test_util::DestroyHelperForTests> in SetUpTestFileSystem() 314 test_util::DestroyHelperForTests> metadata_storage_; 315 scoped_ptr<internal::FileCache, test_util::DestroyHelperForTests> cache_; [all …]
|
D | directory_loader_unittest.cc | 74 test_util::RegisterDrivePrefs(pref_service_->registry()); in SetUp() 79 ASSERT_TRUE(test_util::SetUpTestEntries(drive_service_.get())); in SetUp() 121 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); in AddNewFile() 134 test_util::DestroyHelperForTests> metadata_storage_; 135 scoped_ptr<FileCache, test_util::DestroyHelperForTests> cache_; 136 scoped_ptr<ResourceMetadata, test_util::DestroyHelperForTests> metadata_; 151 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 181 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 211 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 219 google_apis::test_util::CreateCopyResultCallback(&error2)); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/chromeos/drive/sync/ |
D | entry_update_performer_unittest.cc | 43 !google_apis::test_util::WriteStringToFile(path, content)) in StoreAndMarkDirty() 55 google_apis::test_util::CreateCopyResultCallback(&error)); in StoreAndMarkDirty() 94 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 103 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 112 google_apis::test_util::CreateCopyResultCallback(&gdata_error, in TEST_F() 143 google_apis::test_util::CreateCopyResultCallback( in TEST_F() 160 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 169 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 178 google_apis::test_util::CreateCopyResultCallback(&gdata_error, in TEST_F() 191 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() [all …]
|
D | remove_performer_unittest.cc | 36 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 47 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 56 google_apis::test_util::CreateCopyResultCallback(&gdata_error, in TEST_F() 66 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 89 google_apis::test_util::CreateCopyResultCallback(&gdata_error, in TEST_F() 101 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 113 google_apis::test_util::CreateCopyResultCallback(&gdata_error, in TEST_F() 139 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 145 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 171 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/ |
D | metadata_database_index_on_disk_unittest.cc | 57 test_util::CreateFolderMetadata("sync_root_folder_id", in CreateTestDatabase() 60 test_util::CreateTracker(*sync_root_metadata, kSyncRootTrackerID, NULL); in CreateTestDatabase() 63 test_util::CreateFolderMetadata("app_root_folder_id", "app_title"); in CreateTestDatabase() 65 test_util::CreateTracker(*app_root_metadata, kAppRootTrackerID, in CreateTestDatabase() 71 test_util::CreateFileMetadata("file_id", "file", "file_md5"); in CreateTestDatabase() 73 test_util::CreateTracker(*file_metadata, in CreateTestDatabase() 78 test_util::CreatePlaceholderTracker("unsynced_file_id", in CreateTestDatabase() 156 test_util::CreateFileMetadata("test_file_id", "test_title", "test_md5"); in TEST_F() 160 test_util::CreateTracker(*metadata, tracker_id, &root_tracker); in TEST_F() 198 test_util::CreateFileMetadata("orphaned_id", "orphaned", "md5"); in TEST_F() [all …]
|
D | metadata_database_index_unittest.cc | 31 test_util::CreateFolderMetadata("sync_root_folder_id", in CreateTestDatabaseContents() 34 test_util::CreateTracker(*sync_root_metadata, kSyncRootTrackerID, NULL); in CreateTestDatabaseContents() 37 test_util::CreateFolderMetadata("app_root_folder_id", "app_id"); in CreateTestDatabaseContents() 39 test_util::CreateTracker(*app_root_metadata, kAppRootTrackerID, in CreateTestDatabaseContents() 45 test_util::CreateFileMetadata("file_id", "file", "file_md5"); in CreateTestDatabaseContents() 47 test_util::CreateTracker(*file_metadata, kFileTrackerID, in CreateTestDatabaseContents() 51 test_util::CreatePlaceholderTracker("unsynced_file_id", in CreateTestDatabaseContents() 147 test_util::CreateTracker(metadata, new_tracker_id, &app_root_tracker); in TEST_F()
|
/external/chromium_org/sync/engine/ |
D | sync_scheduler_unittest.cc | 305 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateNormalSuccess), in TEST_F() 321 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateNormalSuccess), in TEST_F() 334 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureSuccess), in TEST_F() 364 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureFailed), in TEST_F() 366 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureFailed), in TEST_F() 391 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureSuccess), in TEST_F() 412 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureFailed), in TEST_F() 443 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureFailed), in TEST_F() 461 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureFailed), in TEST_F() 473 .WillOnce(DoAll(Invoke(sessions::test_util::SimulateConfigureSuccess), in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/chromeos/drive/file_system/ |
D | download_operation_unittest.cc | 56 google_apis::test_util::CreateCopyResultCallback( in TEST_F() 85 google_apis::test_util::CreateCopyResultCallback( in TEST_F() 111 google_apis::test_util::CreateCopyResultCallback( in TEST_F() 130 google_apis::test_util::CreateCopyResultCallback( in TEST_F() 176 google_apis::test_util::CreateCopyResultCallback( in TEST_F() 202 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 213 google_apis::test_util::CreateCopyResultCallback( in TEST_F() 234 google_apis::test_util::CreateCopyResultCallback( in TEST_F() 262 google_apis::test_util::CreateCopyResultCallback( in TEST_F() 284 google_apis::test_util::TestGetContentCallback get_content_callback; in TEST_F() [all …]
|
D | create_file_operation_unittest.cc | 29 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 67 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 76 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 85 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 94 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 103 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 123 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 137 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 150 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
|
D | copy_operation_unittest.cc | 56 google_apis::test_util::WriteStringToFile(local_src_path, "hello")); in TEST_F() 67 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 89 google_apis::test_util::WriteStringToFile(local_src_path, "hello")); in TEST_F() 99 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 136 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 169 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 193 google_apis::test_util::CreateCopyResultCallback(&gdata_error, in TEST_F() 213 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 236 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 258 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() [all …]
|
D | operation_test_base.cc | 71 test_util::RegisterDrivePrefs(pref_service_->registry()); in SetUp() 78 ASSERT_TRUE(test_util::SetUpTestEntries(fake_drive_service_.get())); in SetUp() 94 google_apis::test_util::CreateCopyResultCallback(&success)); in SetUp() 109 google_apis::test_util::CreateCopyResultCallback(&success)); in SetUp() 123 google_apis::test_util::CreateCopyResultCallback(&error)); in SetUp() 139 google_apis::test_util::CreateCopyResultCallback(&error)); in SetUp() 152 base::Bind(google_apis::test_util::CreateCopyResultCallback(&error))); in GetLocalResourceEntry() 166 base::Bind(google_apis::test_util::CreateCopyResultCallback(&error))); in GetLocalResourceEntryById() 179 base::Bind(google_apis::test_util::CreateCopyResultCallback(&error))); in GetLocalId() 188 google_apis::test_util::CreateCopyResultCallback(&error)); in CheckForUpdates()
|
D | create_directory_operation_unittest.cc | 49 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 75 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 84 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 94 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 102 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 111 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F() 120 google_apis::test_util::CreateCopyResultCallback(&error)); in TEST_F()
|