/external/chromium/chrome/browser/extensions/ |
D | extension_tts_apitest.cc | 24 using ::testing::Return; 65 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 67 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 69 .WillOnce(Return(false)); in IN_PROC_BROWSER_TEST_F() 76 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 78 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 80 .WillOnce(Return(true)) in IN_PROC_BROWSER_TEST_F() 81 .WillOnce(Return(true)) in IN_PROC_BROWSER_TEST_F() 82 .WillOnce(Return(false)); in IN_PROC_BROWSER_TEST_F() 90 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/chrome/common/ |
D | content_settings_pattern_parser_unittest.cc | 36 ::testing::Return(&builder)); in TEST() 38 ::testing::Return(&builder)); in TEST() 40 ::testing::Return(&builder)); in TEST() 45 ::testing::Return(&builder)); in TEST() 47 ::testing::Return(&builder)); in TEST() 49 ::testing::Return(&builder)); in TEST() 55 ::testing::Return(&builder)); in TEST() 57 ::testing::Return(&builder)); in TEST() 59 ::testing::Return(&builder)); in TEST() 64 ::testing::Return(&builder)); in TEST() [all …]
|
/external/chromium/chrome/browser/chromeos/login/ |
D | network_screen_browsertest.cc | 33 using ::testing::Return; 69 .WillRepeatedly(Return(false)); in SetUpInProcessBrowserTestFixture() 72 .WillRepeatedly(Return(false)); in SetUpInProcessBrowserTestFixture() 75 .WillRepeatedly(Return(false)); in SetUpInProcessBrowserTestFixture() 86 .WillRepeatedly((Return(true))); in SetUpInProcessBrowserTestFixture() 89 .WillRepeatedly((Return(true))); in SetUpInProcessBrowserTestFixture() 92 .WillRepeatedly((Return(false))); in SetUpInProcessBrowserTestFixture() 95 .WillRepeatedly((Return(false))); in SetUpInProcessBrowserTestFixture() 98 .WillRepeatedly((Return(true))); in SetUpInProcessBrowserTestFixture() 101 .WillRepeatedly((Return(true))); in SetUpInProcessBrowserTestFixture() [all …]
|
D | ownership_service_unittest.cc | 26 using ::testing::Return; 85 .WillRepeatedly(Return(tmpfile_)); in TEST_F() 91 .WillRepeatedly(Return(tmpfile_)); in TEST_F() 99 .WillRepeatedly(Return(tmpfile_)); in TEST_F() 107 .WillRepeatedly(Return(tmpfile_)); in TEST_F() 114 .WillRepeatedly(Return(tmpfile_)); in TEST_F() 116 .WillOnce(Return(false)) in TEST_F() 137 .WillRepeatedly(Return(tmpfile_)); in TEST_F() 140 Return(true))) in TEST_F() 151 .WillRepeatedly(Return(tmpfile_)); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/sync/ |
D | sync_ui_util_unittest.cc | 24 using ::testing::Return; 56 .WillRepeatedly(Return(is_signed_in)); in VerifySyncGlobalErrorResult() 86 .WillRepeatedly(Return(false)); in TEST_F() 88 .WillRepeatedly(Return(true)); in TEST_F() 90 .WillRepeatedly(Return(true)); in TEST_F() 104 .WillRepeatedly(Return(false)); in TEST_F() 107 .WillRepeatedly(Return(true)); in TEST_F() 109 .WillRepeatedly(Return(true)); in TEST_F() 111 .WillRepeatedly(Return(true)); in TEST_F() 134 .WillRepeatedly(Return(false)); in TEST_F() [all …]
|
D | sync_startup_tracker_unittest.cc | 16 using ::testing::Return; 59 EXPECT_CALL(*mock_pss_, sync_initialized()).WillRepeatedly(Return(false)); in SetupNonInitializedPSS() 61 .WillRepeatedly(Return(false)); in SetupNonInitializedPSS() 63 .WillRepeatedly(Return(true)); in SetupNonInitializedPSS() 74 EXPECT_CALL(*mock_pss_, sync_initialized()).WillRepeatedly(Return(true)); in TEST_F() 76 .WillRepeatedly(Return(true)); in TEST_F() 84 EXPECT_CALL(*mock_pss_, sync_initialized()).WillRepeatedly(Return(false)); in TEST_F() 86 Return(false)); in TEST_F() 94 EXPECT_CALL(*mock_pss_, sync_initialized()).WillRepeatedly(Return(false)); in TEST_F() 96 Return(true)); in TEST_F() [all …]
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
D | kernel_wrap_test.cc | 34 using ::testing::Return; 113 .WillOnce(Return(0)) in SetUp() 114 .WillOnce(Return(1)) in SetUp() 115 .WillOnce(Return(2)); in SetUp() 118 .WillOnce(Return(0)) in SetUp() 119 .WillOnce(Return(0)); in SetUp() 132 EXPECT_CALL(mock, access(kDummyConstChar, kDummyInt)) .WillOnce(Return(-1)); in TEST_F() 135 EXPECT_CALL(mock, access(kDummyConstChar, kDummyInt)) .WillOnce(Return(0)); in TEST_F() 140 EXPECT_CALL(mock, chdir(kDummyConstChar)).WillOnce(Return(-1)); in TEST_F() 143 EXPECT_CALL(mock, chdir(kDummyConstChar)).WillOnce(Return(0)); in TEST_F() [all …]
|
/external/chromium/chrome/browser/chromeos/status/ |
D | power_menu_button_browsertest.cc | 19 using ::testing::Return; 53 .WillOnce((Return(false))) // no battery in IN_PROC_BROWSER_TEST_F() 56 .WillOnce((Return(42.0))) in IN_PROC_BROWSER_TEST_F() 59 .WillOnce((Return(false))) in IN_PROC_BROWSER_TEST_F() 62 .WillOnce((Return(false))) in IN_PROC_BROWSER_TEST_F() 65 .WillOnce((Return(base::TimeDelta::FromMinutes(42)))) in IN_PROC_BROWSER_TEST_F() 68 .WillOnce((Return(base::TimeDelta::FromMinutes(24)))) in IN_PROC_BROWSER_TEST_F() 75 .WillOnce((Return(true))) in IN_PROC_BROWSER_TEST_F() 78 .WillOnce((Return(42.0))) in IN_PROC_BROWSER_TEST_F() 81 .WillOnce((Return(true))) // fully charged in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium/chrome/browser/chromeos/cros/ |
D | cros_mock.cc | 32 using ::testing::Return; 72 .WillRepeatedly(Return(true)); in InitMockLibraryLoader() 184 .WillRepeatedly((Return("en_US"))) in SetInputMethodLibraryStatusAreaExpectations() 188 .WillRepeatedly((Return(current_input_method_))) in SetInputMethodLibraryStatusAreaExpectations() 192 .WillRepeatedly((Return(previous_input_method_))) in SetInputMethodLibraryStatusAreaExpectations() 200 .WillRepeatedly((Return(1))) in SetInputMethodLibraryStatusAreaExpectations() 204 .WillRepeatedly((Return(true))) in SetInputMethodLibraryStatusAreaExpectations() 238 .WillRepeatedly((Return(false))); in SetNetworkLibraryStatusAreaExpectations() 241 .WillRepeatedly((Return((const NetworkDevice*)(NULL)))); in SetNetworkLibraryStatusAreaExpectations() 244 .WillRepeatedly((Return(true))); in SetNetworkLibraryStatusAreaExpectations() [all …]
|
/external/chromium_org/chrome/browser/speech/extension_api/ |
D | tts_extension_apitest.cc | 30 using ::testing::Return; 183 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 185 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 187 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 189 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 191 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 193 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 195 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 197 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 199 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/chrome/browser/ui/webui/ |
D | sync_setup_handler_unittest.cc | 40 using ::testing::Return; 289 Return(syncer::IMPLICIT_PASSPHRASE)); in SetUp() 291 Return(base::Time())); in SetUp() 293 Return(base::Time())); in SetUp() 312 WillRepeatedly(Return(true)); in SetDefaultExpectationsForConfigPage() 314 WillRepeatedly(Return(GetAllTypes())); in SetDefaultExpectationsForConfigPage() 316 WillRepeatedly(Return(GetAllTypes())); in SetDefaultExpectationsForConfigPage() 318 WillRepeatedly(Return(GetAllTypes())); in SetDefaultExpectationsForConfigPage() 320 WillRepeatedly(Return(false)); in SetDefaultExpectationsForConfigPage() 332 .WillRepeatedly(Return(true)); in SetupInitializedProfileSyncService() [all …]
|
/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/media/audio/alsa/ |
D | alsa_output_unittest.cc | 26 using testing::Return; 271 Return(0))); in TEST_F() 275 .WillOnce(Return(0)); in TEST_F() 279 Return(0))); in TEST_F() 286 EXPECT_CALL(mock_alsa_wrapper_, PcmClose(kFakeHandle)).WillOnce(Return(0)); in TEST_F() 288 .WillOnce(Return(kTestDeviceName)); in TEST_F() 300 .WillOnce(DoAll(SetArgumentPointee<0>(kFakeHandle), Return(0))); in TEST_F() 303 .WillOnce(Return(0)); in TEST_F() 307 Return(0))); in TEST_F() 315 .WillOnce(Return(0)); in TEST_F() [all …]
|
/external/chromium_org/content/renderer/media/ |
D | video_capture_impl_unittest.cc | 14 using ::testing::Return; 141 .WillOnce(Return()); in TEST_F() 147 .WillOnce(Return()); in TEST_F() 149 .WillOnce(Return()); in TEST_F() 160 .WillOnce(Return()); in TEST_F() 166 .WillOnce(Return()); in TEST_F() 168 .WillOnce(Return()); in TEST_F() 174 .WillOnce(Return()); in TEST_F() 180 .WillOnce(Return()); in TEST_F() 182 .WillOnce(Return()); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/download/ |
D | download_query_unittest.cc | 20 using ::testing::Return; 57 EXPECT_CALL(mock(mocks_.size() - 1), GetId()).WillRepeatedly(Return( in CreateMocks() 188 EXPECT_CALL(mock(0), GetBrowserContext()).WillRepeatedly(Return( in TEST_F() 190 EXPECT_CALL(mock(1), GetBrowserContext()).WillRepeatedly(Return( in TEST_F() 209 EXPECT_CALL(mock(0), GetBrowserContext()).WillRepeatedly(Return( in TEST_F() 211 EXPECT_CALL(mock(1), GetBrowserContext()).WillRepeatedly(Return( in TEST_F() 230 EXPECT_CALL(mock(0), GetBrowserContext()).WillRepeatedly(Return( in TEST_F() 232 EXPECT_CALL(mock(1), GetBrowserContext()).WillRepeatedly(Return( in TEST_F() 330 EXPECT_CALL(mock(0), GetReceivedBytes()).WillRepeatedly(Return(0)); in TEST_F() 331 EXPECT_CALL(mock(1), GetReceivedBytes()).WillRepeatedly(Return(1)); in TEST_F() [all …]
|
D | download_shelf_unittest.cc | 23 using ::testing::Return; 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() 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 | 29 using ::testing::Return; 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() 82 .WillByDefault(Return(base::FilePath(kDefaultDisplayFileName))); in SetupDownloadItemDefaults() [all …]
|
/external/chromium/testing/gmock/test/ |
D | gmock-generated-function-mockers_test.cc | 71 using testing::Return; 177 .WillOnce(Return(1)); in TEST_F() 187 .WillOnce(Return(true)); in TEST_F() 196 .WillOnce(Return(3)); in TEST_F() 205 .WillOnce(Return(5)); in TEST_F() 214 .WillOnce(Return(true)); in TEST_F() 223 .WillOnce(Return("Hello")); in TEST_F() 241 .WillOnce(Return(1)); in TEST_F() 243 .WillOnce(Return(2)); in TEST_F() 252 .WillOnce(Return(1)); in TEST_F() [all …]
|
D | gmock-spec-builders_test.cc | 89 using testing::Return; 192 ON_CALL(cc, Method()).WillByDefault(Return(42)); in TEST() 206 EXPECT_CALL(cc, Method()).WillOnce(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() 329 .WillOnce(Return()) in TEST() 340 .WillOnce(Return()); in TEST() [all …]
|
/external/chromium_org/media/filters/ |
D | ffmpeg_glue_unittest.cc | 17 using ::testing::Return; 42 EXPECT_CALL(*protocol_.get(), IsStreaming()).WillOnce(Return(true)); in FFmpegGlueTest() 124 .WillOnce(Return(0)); in TEST_F() 126 .WillOnce(Return(kBufferSize)); in TEST_F() 128 .WillOnce(Return(DataSource::kReadError)); in TEST_F() 141 .WillOnce(Return(false)); in TEST_F() 144 .WillOnce(Return(true)); in TEST_F() 146 .WillOnce(DoAll(SetArgumentPointee<0>(8), Return(true))); in TEST_F() 154 .WillOnce(Return(false)); in TEST_F() 157 .WillOnce(DoAll(SetArgumentPointee<0>(8), Return(true))); in TEST_F() [all …]
|
/external/chromium_org/media/webm/ |
D | webm_parser_unittest.cc | 12 using ::testing::Return; 56 EXPECT_CALL(*client, OnListStart(kWebMIdCluster)).WillOnce(Return(client)); in CreateClusterExpectations() 58 .WillOnce(Return(true)); in CreateClusterExpectations() 62 .WillOnce(Return(true)); in CreateClusterExpectations() 66 EXPECT_CALL(*client, OnListEnd(kWebMIdCluster)).WillOnce(Return(true)); in CreateClusterExpectations() 76 EXPECT_CALL(client_, OnListStart(kWebMIdCluster)).WillOnce(Return(&client_)); in TEST_F() 77 EXPECT_CALL(client_, OnListEnd(kWebMIdCluster)).WillOnce(Return(true)); in TEST_F() 93 EXPECT_CALL(client_, OnListStart(kWebMIdSegment)).WillOnce(Return(&client_)); in TEST_F() 94 EXPECT_CALL(client_, OnListStart(kWebMIdCluster)).WillOnce(Return(&client_)); in TEST_F() 95 EXPECT_CALL(client_, OnListEnd(kWebMIdCluster)).WillOnce(Return(true)); in TEST_F() [all …]
|
/external/chromium_org/chrome/renderer/translate/ |
D | translate_helper_browsertest.cc | 16 using testing::Return; 104 .WillRepeatedly(Return(true)); in TEST_F() 109 .WillRepeatedly(Return(false)); in TEST_F() 129 .WillRepeatedly(Return(true)); in TEST_F() 132 .WillOnce(Return(false)) in TEST_F() 133 .WillOnce(Return(true)); in TEST_F() 135 EXPECT_CALL(*translate_helper_, StartTranslation()).WillOnce(Return(true)); in TEST_F() 139 .WillRepeatedly(Return(false)); in TEST_F() 141 .WillOnce(Return(false)) in TEST_F() 142 .WillOnce(Return(false)) in TEST_F() [all …]
|
/external/chromium_org/chrome/renderer/safe_browsing/ |
D | phishing_term_feature_extractor_unittest.cc | 26 using ::testing::Return; 127 EXPECT_CALL(clock_, Now()).WillRepeatedly(Return(base::TimeTicks::Now())); in TEST_F() 220 .WillOnce(Return(now)) in TEST_F() 222 .WillOnce(Return(now)) in TEST_F() 224 .WillOnce(Return(now + base::TimeDelta::FromMilliseconds(3))) in TEST_F() 226 .WillOnce(Return(now + base::TimeDelta::FromMilliseconds(6))) in TEST_F() 228 .WillOnce(Return(now + base::TimeDelta::FromMilliseconds(9))) in TEST_F() 231 .WillOnce(Return(now + base::TimeDelta::FromMilliseconds(12))) in TEST_F() 233 .WillOnce(Return(now + base::TimeDelta::FromMilliseconds(22))) in TEST_F() 235 .WillOnce(Return(now + base::TimeDelta::FromMilliseconds(25))) in TEST_F() [all …]
|
/external/chromium/chrome/browser/sync/glue/ |
D | autofill_data_type_controller_unittest.cc | 34 using testing::Return; 107 WillRepeatedly(Return(personal_data_manager_.get())); in SetStartExpectations() 109 WillRepeatedly(Return(true)); in SetStartExpectations() 111 WillOnce(Return(web_data_service_.get())); in SetStartExpectations() 119 WillOnce(Return( in SetAssociateExpectations() 123 WillRepeatedly(Return(true)); in SetAssociateExpectations() 125 WillRepeatedly(DoAll(SetArgumentPointee<0>(true), Return(true))); in SetAssociateExpectations() 127 WillRepeatedly(Return(true)); in SetAssociateExpectations() 129 EXPECT_CALL(*change_processor_, IsRunning()).WillRepeatedly(Return(true)); in SetAssociateExpectations() 177 WillRepeatedly(Return(personal_data_manager_.get())); in TEST_F() [all …]
|
/external/mesa3d/src/gallium/drivers/radeon/ |
D | AMDILUtilityFunctions.h | 53 #define ExpandCaseTo32bitIntReturn(Instr, Return) \ argument 54 case Instr##_i32: return Return##_i32; 56 #define ExpandCaseToIntReturn(Instr, Return) \ argument 57 ExpandCaseTo32bitIntReturn(Instr, Return) 59 #define ExpandCaseToFloatReturn(Instr, Return) \ argument 60 case Instr##_f32: return Return##_f32;\ 62 #define ExpandCaseToAllScalarReturn(Instr, Return) \ argument 63 ExpandCaseToFloatReturn(Instr, Return) \ 64 ExpandCaseToIntReturn(Instr, Return)
|