/external/chromium_org/device/bluetooth/test/ |
D | mock_bluetooth_device.cc | 22 .WillByDefault(testing::Return(bluetooth_class_)); in MockBluetoothDevice() 24 .WillByDefault(testing::Return(name_)); in MockBluetoothDevice() 26 .WillByDefault(testing::Return(address_)); in MockBluetoothDevice() 28 .WillByDefault(testing::Return(paired)); in MockBluetoothDevice() 30 .WillByDefault(testing::Return(connected)); in MockBluetoothDevice() 32 .WillByDefault(testing::Return(false)); in MockBluetoothDevice() 34 .WillByDefault(testing::Return(false)); in MockBluetoothDevice() 36 .WillByDefault(testing::Return(UTF8ToUTF16(name_))); in MockBluetoothDevice() 38 .WillByDefault(testing::Return(false)); in MockBluetoothDevice() 40 .WillByDefault(testing::Return(false)); in MockBluetoothDevice() [all …]
|
/external/chromium_org/chromeos/cryptohome/ |
D | mock_async_method_caller.cc | 30 .WillByDefault( in SetUp() 33 .WillByDefault( in SetUp() 36 .WillByDefault( in SetUp() 39 .WillByDefault( in SetUp() 42 .WillByDefault( in SetUp() 45 .WillByDefault( in SetUp() 48 .WillByDefault( in SetUp() 52 .WillByDefault( in SetUp() 55 .WillByDefault( in SetUp() 59 .WillByDefault( in SetUp() [all …]
|
/external/chromium/testing/gmock/test/ |
D | gmock_link_test.h | 393 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return()); in TEST() 474 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return()); in TEST() 481 ON_CALL(mock, VoidFromString(A<char*>())).WillByDefault(Return()); in TEST() 489 ON_CALL(mock, VoidFromString(Eq(p))).WillByDefault(Return()); in TEST() 491 .WillByDefault(Return()); in TEST() 498 ON_CALL(mock, VoidFromFloat(Lt(1.0f))).WillByDefault(Return()); in TEST() 499 ON_CALL(mock, VoidFromFloat(Gt(1.0f))).WillByDefault(Return()); in TEST() 500 ON_CALL(mock, VoidFromFloat(Le(1.0f))).WillByDefault(Return()); in TEST() 501 ON_CALL(mock, VoidFromFloat(Ge(1.0f))).WillByDefault(Return()); in TEST() 502 ON_CALL(mock, VoidFromFloat(Ne(1.0f))).WillByDefault(Return()); in TEST() [all …]
|
D | gmock_output_test_.cc | 207 .WillByDefault(Return(true)); // Default action #1 in TEST_F() 209 .WillByDefault(Return(false)); // Default action #2 in TEST_F() 219 .WillByDefault(Return(true)); // Default action #1 in TEST_F() 221 .WillByDefault(Return(false)); // Default action #2 in TEST_F() 234 .WillByDefault(Return(true)); // Default action #1 in TEST_F() 236 .WillByDefault(Return(false)); // Default action #2 in TEST_F() 244 .WillByDefault(Return(true)); // Default action #1 in TEST_F() 258 ON_CALL(*foo1, Bar(_, _, _)).WillByDefault(Return('a')); in TEST_F()
|
D | gmock-spec-builders_test.cc | 192 ON_CALL(cc, Method()).WillByDefault(Return(42)); in TEST() 236 .WillByDefault(Return()); in TEST() 239 .WillByDefault(Return()); in TEST() 249 .WillByDefault(Return(Result())); in TEST() 267 .WillByDefault(Return()) in TEST() 268 .WillByDefault(Return()); in TEST() 694 .WillByDefault(Return(1)); in TEST() 704 .WillByDefault(Return(3)); in TEST() 706 .WillByDefault(Return(2)); in TEST() 708 .WillByDefault(Return(1)); in TEST() [all …]
|
D | gmock_leak_test_.cc | 75 ON_CALL(*foo, DoThis()).WillByDefault(Return()); in TEST() 88 ON_CALL(*foo1, DoThis()).WillByDefault(Return()); in TEST()
|
/external/chromium_org/chrome/browser/sync_file_system/ |
D | mock_remote_file_sync_service.cc | 26 .WillByDefault(Invoke(this, &self::AddServiceObserverStub)); in MockRemoteFileSyncService() 28 .WillByDefault(Invoke(this, &self::AddFileStatusObserverStub)); in MockRemoteFileSyncService() 30 .WillByDefault(Invoke(this, &self::RegisterOriginStub)); in MockRemoteFileSyncService() 32 .WillByDefault( in MockRemoteFileSyncService() 35 .WillByDefault(Invoke(this, &self::ProcessRemoteChangeStub)); in MockRemoteFileSyncService() 37 .WillByDefault(Return(&mock_local_change_processor_)); in MockRemoteFileSyncService() 39 .WillByDefault(Return(false)); in MockRemoteFileSyncService() 41 .WillByDefault(Invoke(this, &self::GetCurrentStateStub)); in MockRemoteFileSyncService() 43 .WillByDefault(Invoke(this, &self::SetConflictResolutionPolicyStub)); in MockRemoteFileSyncService() 45 .WillByDefault(Invoke(this, &self::GetConflictResolutionPolicyStub)); in MockRemoteFileSyncService()
|
/external/chromium_org/chrome/browser/download/ |
D | download_shelf_unittest.cc | 77 ON_CALL(*download_item_, GetAutoOpened()).WillByDefault(Return(false)); in DownloadShelfTest() 78 ON_CALL(*download_item_, GetMimeType()).WillByDefault(Return("text/plain")); in DownloadShelfTest() 79 ON_CALL(*download_item_, GetOpenWhenComplete()).WillByDefault(Return(false)); in DownloadShelfTest() 81 .WillByDefault(Return(DownloadItem::TARGET_DISPOSITION_OVERWRITE)); in DownloadShelfTest() 83 .WillByDefault(ReturnRefOfCopy(GURL("http://example.com/foo"))); in DownloadShelfTest() 85 .WillByDefault(Return(DownloadItem::IN_PROGRESS)); in DownloadShelfTest() 86 ON_CALL(*download_item_, IsTemporary()).WillByDefault(Return(false)); in DownloadShelfTest() 88 .WillByDefault(Return(false)); in DownloadShelfTest() 90 .WillByDefault(Return(profile())); in DownloadShelfTest() 95 .WillByDefault(Return(download_item_.get())); in DownloadShelfTest() [all …]
|
D | download_item_model_unittest.cc | 70 ON_CALL(item_, GetReceivedBytes()).WillByDefault(Return(1)); in SetupDownloadItemDefaults() 71 ON_CALL(item_, GetTotalBytes()).WillByDefault(Return(2)); in SetupDownloadItemDefaults() 72 ON_CALL(item_, TimeRemaining(_)).WillByDefault(Return(false)); in SetupDownloadItemDefaults() 73 ON_CALL(item_, GetMimeType()).WillByDefault(Return("text/html")); in SetupDownloadItemDefaults() 74 ON_CALL(item_, AllDataSaved()).WillByDefault(Return(false)); in SetupDownloadItemDefaults() 75 ON_CALL(item_, GetOpenWhenComplete()).WillByDefault(Return(false)); in SetupDownloadItemDefaults() 76 ON_CALL(item_, GetFileExternallyRemoved()).WillByDefault(Return(false)); in SetupDownloadItemDefaults() 78 .WillByDefault(Return(DownloadItem::IN_PROGRESS)); in SetupDownloadItemDefaults() 80 .WillByDefault(ReturnRefOfCopy(GURL(kDefaultURL))); in SetupDownloadItemDefaults() 82 .WillByDefault(Return(base::FilePath(kDefaultDisplayFileName))); in SetupDownloadItemDefaults() [all …]
|
D | chrome_download_manager_delegate_unittest.cc | 202 .WillByDefault(Return(profile())); in CreateActiveDownloadItem() 204 .WillByDefault(Return(content::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS)); in CreateActiveDownloadItem() 206 .WillByDefault(ReturnRefOfCopy(base::FilePath())); in CreateActiveDownloadItem() 208 .WillByDefault(ReturnRefOfCopy(base::FilePath())); in CreateActiveDownloadItem() 210 .WillByDefault(ReturnRefOfCopy(std::string())); in CreateActiveDownloadItem() 212 .WillByDefault(Return(id)); in CreateActiveDownloadItem() 214 .WillByDefault(Return(content::DOWNLOAD_INTERRUPT_REASON_NONE)); in CreateActiveDownloadItem() 216 .WillByDefault(ReturnRefOfCopy(GURL())); in CreateActiveDownloadItem() 218 .WillByDefault(Return(DownloadItem::IN_PROGRESS)); in CreateActiveDownloadItem() 220 .WillByDefault(ReturnRefOfCopy(base::FilePath())); in CreateActiveDownloadItem() [all …]
|
D | download_target_determiner_unittest.cc | 162 .WillByDefault(WithArg<2>( in SetupDefaults() 165 .WillByDefault(WithArg<2>( in SetupDefaults() 169 .WillByDefault(Invoke( in SetupDefaults() 172 .WillByDefault(Invoke( in SetupDefaults() 175 .WillByDefault(Invoke( in SetupDefaults() 178 .WillByDefault(WithArg<1>( in SetupDefaults() 302 .WillByDefault(Return(profile())); in CreateActiveDownloadItem() 304 .WillByDefault(Return(content::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS)); in CreateActiveDownloadItem() 306 .WillByDefault(ReturnRefOfCopy(forced_file_path)); in CreateActiveDownloadItem() 308 .WillByDefault(ReturnRefOfCopy(base::FilePath())); in CreateActiveDownloadItem() [all …]
|
/external/chromium_org/chrome/browser/ui/autofill/ |
D | mock_autofill_dialog_view_delegate.cc | 46 .WillByDefault(ReturnRef(cc_default_inputs_)); in MockAutofillDialogViewDelegate() 48 .WillByDefault(ReturnRef(cc_default_inputs_)); in MockAutofillDialogViewDelegate() 51 .WillByDefault(Return(ui::DIALOG_BUTTON_OK | ui::DIALOG_BUTTON_CANCEL)); in MockAutofillDialogViewDelegate() 52 ON_CALL(*this, LegalDocumentLinks()).WillByDefault(ReturnRef(range_)); in MockAutofillDialogViewDelegate() 56 ON_CALL(*this, SectionIsActive(_)).WillByDefault(Return(true)); in MockAutofillDialogViewDelegate() 58 .WillByDefault(Return(false)); in MockAutofillDialogViewDelegate()
|
/external/chromium/chrome/browser/chromeos/cros/ |
D | mock_cryptohome_library.h | 29 .WillByDefault( in SetUp() 32 .WillByDefault( in SetUp() 35 .WillByDefault( in SetUp() 38 .WillByDefault( in SetUp() 41 .WillByDefault( in SetUp() 44 .WillByDefault( in SetUp()
|
/external/chromium_org/chrome/browser/ui/cocoa/download/ |
D | download_item_cell_unittest.mm | 59 ON_CALL(item, IsPaused()).WillByDefault(Return(false)); 60 ON_CALL(item, PercentComplete()).WillByDefault(Return(-1)); 62 .WillByDefault(Return(content::DownloadItem::IN_PROGRESS)); 64 .WillByDefault(Return(base::FilePath("foo.bar"))); 79 ON_CALL(item, PercentComplete()).WillByDefault(Return(0));
|
/external/chromium_org/chrome/browser/chromeos/login/ |
D | mock_login_utils.cc | 21 .WillByDefault(Invoke(fake, &FakeLoginUtils::DoBrowserLaunch)); in DelegateToFake() 23 .WillByDefault(Invoke(fake, &FakeLoginUtils::PrepareProfile)); in DelegateToFake() 25 .WillByDefault(Invoke(fake, &FakeLoginUtils::CreateAuthenticator)); in DelegateToFake()
|
/external/chromium_org/content/renderer/media/ |
D | mock_web_rtc_peer_connection_handler_client.cc | 18 ON_CALL(*this, didGenerateICECandidate(_)).WillByDefault(testing::Invoke( in MockWebRTCPeerConnectionHandlerClient() 21 ON_CALL(*this, didAddRemoteStream(_)).WillByDefault(testing::Invoke( in MockWebRTCPeerConnectionHandlerClient() 24 ON_CALL(*this, didRemoveRemoteStream(_)).WillByDefault(testing::Invoke( in MockWebRTCPeerConnectionHandlerClient()
|
/external/chromium_org/content/browser/renderer_host/media/ |
D | web_contents_audio_input_stream_unittest.cc | 102 .WillByDefault(Invoke(&real_, &VirtualAudioInputStream::Open)); in MockVirtualAudioInputStream() 104 .WillByDefault(Invoke(&real_, &VirtualAudioInputStream::Start)); in MockVirtualAudioInputStream() 106 .WillByDefault(Invoke(&real_, &VirtualAudioInputStream::Stop)); in MockVirtualAudioInputStream() 108 .WillByDefault(Invoke(&real_, &VirtualAudioInputStream::Close)); in MockVirtualAudioInputStream() 110 .WillByDefault(Invoke(&real_, &VirtualAudioInputStream::GetMaxVolume)); in MockVirtualAudioInputStream() 112 .WillByDefault(Invoke(&real_, &VirtualAudioInputStream::SetVolume)); in MockVirtualAudioInputStream() 114 .WillByDefault(Invoke(&real_, &VirtualAudioInputStream::GetVolume)); in MockVirtualAudioInputStream() 116 .WillByDefault( in MockVirtualAudioInputStream() 119 .WillByDefault( in MockVirtualAudioInputStream() 122 .WillByDefault( in MockVirtualAudioInputStream() [all …]
|
/external/chromium_org/net/quic/test_tools/ |
D | quic_test_utils.cc | 46 .WillByDefault(testing::Return(false)); in MockFramerVisitor() 50 .WillByDefault(testing::Return(true)); in MockFramerVisitor() 53 .WillByDefault(testing::Return(true)); in MockFramerVisitor() 56 .WillByDefault(testing::Return(true)); in MockFramerVisitor() 59 .WillByDefault(testing::Return(true)); in MockFramerVisitor() 62 .WillByDefault(testing::Return(true)); in MockFramerVisitor() 65 .WillByDefault(testing::Return(true)); in MockFramerVisitor() 68 .WillByDefault(testing::Return(true)); in MockFramerVisitor() 71 .WillByDefault(testing::Return(true)); in MockFramerVisitor() 295 .WillByDefault(testing::Return(QuicConsumedData(0, false))); in MockSession()
|
/external/chromium_org/chrome/service/cloud_print/ |
D | printer_job_queue_handler_unittest.cc | 117 .WillByDefault(Return(base::Time::UnixEpoch())); in TEST_F() 123 .WillByDefault(Return(base::Time::UnixEpoch() + in TEST_F() 147 .WillByDefault(Return(base::Time::UnixEpoch())); in TEST_F() 153 .WillByDefault(Return(base::Time::UnixEpoch() + in TEST_F() 171 .WillByDefault(Return(base::Time::UnixEpoch() + in TEST_F()
|
D | printer_job_handler_unittest.cc | 489 .WillByDefault(Invoke(this, &PrinterJobHandlerTest::GetPrinterInfo)); in SetUp() 492 .WillByDefault(Invoke(this, &PrinterJobHandlerTest::SendCapsAndDefaults)); in SetUp() 625 .WillByDefault(DoAll(SaveArg<0>(&delegate_), Return(true))); in MockPrintServerWatcher() 626 ON_CALL(*this, StopWatching()).WillByDefault(Return(true)); in MockPrintServerWatcher() 632 .WillByDefault(DoAll(SaveArg<0>(&delegate_), Return(true))); in MockPrinterWatcher() 633 ON_CALL(*this, StopWatching()).WillByDefault(Return(true)); in MockPrinterWatcher() 638 .WillByDefault(DoAll(SaveArg<6>(&delegate_), Return(true))); in MockJobSpooler() 645 ON_CALL(*this, CreateJobSpooler()).WillByDefault(Return(job_spooler_.get())); in MockPrintSystem() 648 .WillByDefault(Return(printer_watcher_.get())); in MockPrintSystem() 651 .WillByDefault(Return(print_server_watcher_.get())); in MockPrintSystem() [all …]
|
/external/chromium_org/gpu/command_buffer/service/ |
D | gles2_cmd_decoder_mock.cc | 13 .WillByDefault(testing::Return("")); in MockGLES2Decoder() 15 .WillByDefault(testing::Return(true)); in MockGLES2Decoder()
|
/external/chromium_org/chromeos/dbus/ |
D | mock_cryptohome_client.cc | 29 .WillByDefault(Invoke(&RunCallbackWithTrue)); in MockCryptohomeClient() 31 .WillByDefault(Invoke(&RunCallbackWithTrue)); in MockCryptohomeClient()
|
/external/chromium_org/chromeos/disks/ |
D | mock_disk_mount_manager.cc | 50 .WillByDefault(Invoke(this, &MockDiskMountManager::AddObserverInternal)); in MockDiskMountManager() 52 .WillByDefault(Invoke(this, in MockDiskMountManager() 55 .WillByDefault(Invoke(this, &MockDiskMountManager::disksInternal)); in MockDiskMountManager() 57 .WillByDefault(Invoke(this, &MockDiskMountManager::mountPointsInternal)); in MockDiskMountManager() 59 .WillByDefault(Invoke( in MockDiskMountManager()
|
/external/chromium_org/chromeos/attestation/ |
D | mock_attestation_flow.cc | 37 .WillByDefault(Invoke(&fake_, &FakeServerProxy::SendEnrollRequest)); in DeferToFake() 39 .WillByDefault(Invoke(&fake_, &FakeServerProxy::SendCertificateRequest)); in DeferToFake()
|
/external/chromium_org/content/browser/geolocation/ |
D | fake_access_token_store.cc | 21 .WillByDefault(Invoke(this, in FakeAccessTokenStore() 24 .WillByDefault(Invoke(this, in FakeAccessTokenStore()
|