/external/chromium_org/components/content_settings/core/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_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(DEVICE_UNKNOWN)); in MockBluetoothDevice() 30 .WillByDefault(testing::Return(kUnknownPower)); in MockBluetoothDevice() 32 .WillByDefault(testing::Return(kUnknownPower)); in MockBluetoothDevice() 34 .WillByDefault(testing::Return(kUnknownPower)); in MockBluetoothDevice() 36 .WillByDefault(testing::Return(VENDOR_ID_UNKNOWN)); in MockBluetoothDevice() 38 .WillByDefault(testing::Return(0)); in MockBluetoothDevice() 40 .WillByDefault(testing::Return(0)); in MockBluetoothDevice() [all …]
|
D | mock_bluetooth_gatt_service.cc | 9 using testing::Return; 20 ON_CALL(*this, GetIdentifier()).WillByDefault(Return(identifier)); in MockBluetoothGattService() 21 ON_CALL(*this, GetUUID()).WillByDefault(Return(uuid)); in MockBluetoothGattService() 22 ON_CALL(*this, IsLocal()).WillByDefault(Return(is_local)); in MockBluetoothGattService() 23 ON_CALL(*this, IsPrimary()).WillByDefault(Return(is_primary)); in MockBluetoothGattService() 24 ON_CALL(*this, GetDevice()).WillByDefault(Return(device)); in MockBluetoothGattService() 26 .WillByDefault(Return(std::vector<BluetoothGattCharacteristic*>())); in MockBluetoothGattService() 28 .WillByDefault(Return(std::vector<BluetoothGattService*>())); in MockBluetoothGattService() 30 .WillByDefault(Return(static_cast<BluetoothGattCharacteristic*>(NULL))); in MockBluetoothGattService()
|
D | mock_bluetooth_gatt_characteristic.cc | 9 using testing::Return; 22 ON_CALL(*this, GetIdentifier()).WillByDefault(Return(identifier)); in MockBluetoothGattCharacteristic() 23 ON_CALL(*this, GetUUID()).WillByDefault(Return(uuid)); in MockBluetoothGattCharacteristic() 24 ON_CALL(*this, IsLocal()).WillByDefault(Return(is_local)); in MockBluetoothGattCharacteristic() 27 ON_CALL(*this, GetService()).WillByDefault(Return(service)); in MockBluetoothGattCharacteristic() 28 ON_CALL(*this, GetProperties()).WillByDefault(Return(properties)); in MockBluetoothGattCharacteristic() 29 ON_CALL(*this, GetPermissions()).WillByDefault(Return(permissions)); in MockBluetoothGattCharacteristic() 30 ON_CALL(*this, IsNotifying()).WillByDefault(Return(false)); in MockBluetoothGattCharacteristic() 32 .WillByDefault(Return(std::vector<BluetoothGattDescriptor*>())); in MockBluetoothGattCharacteristic()
|
/external/chromium_org/chrome/browser/sync/ |
D | sync_ui_util_unittest.cc | 26 using ::testing::Return; 58 .WillRepeatedly(Return(is_signed_in)); in VerifySyncGlobalErrorResult() 89 .WillRepeatedly(Return(false)); in TEST_F() 91 .WillRepeatedly(Return(true)); in TEST_F() 93 .WillRepeatedly(Return(true)); in TEST_F() 109 .WillRepeatedly(Return(false)); in TEST_F() 112 .WillRepeatedly(Return(true)); in TEST_F() 114 .WillRepeatedly(Return(true)); in TEST_F() 116 .WillRepeatedly(Return(true)); in TEST_F() 139 .WillRepeatedly(Return(false)); in TEST_F() [all …]
|
D | sync_startup_tracker_unittest.cc | 16 using ::testing::Return; 46 .WillByDefault(Return(syncer::ModelTypeSet())); in SetUp() 57 EXPECT_CALL(*mock_pss_, sync_initialized()).WillRepeatedly(Return(false)); in SetupNonInitializedPSS() 59 .WillRepeatedly(Return(false)); in SetupNonInitializedPSS() 61 .WillRepeatedly(Return(true)); in SetupNonInitializedPSS() 72 EXPECT_CALL(*mock_pss_, sync_initialized()).WillRepeatedly(Return(true)); in TEST_F() 74 .WillRepeatedly(Return(true)); in TEST_F() 82 EXPECT_CALL(*mock_pss_, sync_initialized()).WillRepeatedly(Return(false)); in TEST_F() 84 Return(false)); in TEST_F() 92 EXPECT_CALL(*mock_pss_, sync_initialized()).WillRepeatedly(Return(false)); in TEST_F() [all …]
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
D | kernel_wrap_test.cc | 38 using ::testing::Return; 149 .WillOnce(Return(0)) in SetUp() 150 .WillOnce(Return(1)) in SetUp() 151 .WillOnce(Return(2)); in SetUp() 188 EXPECT_CALL(mock, access(kDummyConstChar, kDummyInt)) .WillOnce(Return(0)); in TEST_F() 192 .WillOnce(DoAll(SetErrno(kDummyErrno), Return(-1))); in TEST_F() 199 EXPECT_CALL(mock, chdir(kDummyConstChar)).WillOnce(Return(0)); in TEST_F() 203 .WillOnce(DoAll(SetErrno(kDummyErrno), Return(-1))); in TEST_F() 210 .WillOnce(DoAll(SetErrno(kDummyErrno), Return(-1))); in TEST_F() 217 .WillOnce(DoAll(SetErrno(kDummyErrno), Return(-1))); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/ui/webui/ |
D | sync_setup_handler_unittest.cc | 39 using ::testing::Return; 300 Return(syncer::IMPLICIT_PASSPHRASE)); in SetUp() 302 Return(base::Time())); in SetUp() 304 Return(base::Time())); in SetUp() 306 .WillByDefault(Return(syncer::ModelTypeSet())); in SetUp() 316 WillRepeatedly(Return(true)); in SetDefaultExpectationsForConfigPage() 318 WillRepeatedly(Return(GetAllTypes())); in SetDefaultExpectationsForConfigPage() 320 WillRepeatedly(Return(GetAllTypes())); in SetDefaultExpectationsForConfigPage() 322 WillRepeatedly(Return(GetAllTypes())); in SetDefaultExpectationsForConfigPage() 324 WillRepeatedly(Return(true)); in SetDefaultExpectationsForConfigPage() [all …]
|
/external/chromium_org/extensions/browser/api/bluetooth/ |
D | bluetooth_apitest.cc | 120 .WillOnce(testing::Return(kAdapterAddress)); in IN_PROC_BROWSER_TEST_F() 122 .WillOnce(testing::Return(kName)); in IN_PROC_BROWSER_TEST_F() 124 .WillOnce(testing::Return(false)); in IN_PROC_BROWSER_TEST_F() 126 .WillOnce(testing::Return(true)); in IN_PROC_BROWSER_TEST_F() 128 .WillOnce(testing::Return(false)); in IN_PROC_BROWSER_TEST_F() 158 .WillRepeatedly(testing::Return("the real d2")); in IN_PROC_BROWSER_TEST_F() 160 .WillRepeatedly(testing::Return(base::UTF8ToUTF16("the real d2"))); in IN_PROC_BROWSER_TEST_F() 203 EXPECT_CALL(*session, IsActive()).WillOnce(testing::Return(true)); in IN_PROC_BROWSER_TEST_F() 217 EXPECT_CALL(*session, IsActive()).WillOnce(testing::Return(false)); in IN_PROC_BROWSER_TEST_F() 231 EXPECT_CALL(*session, IsActive()).WillOnce(testing::Return(true)); in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/media/audio/alsa/ |
D | alsa_output_unittest.cc | 26 using testing::Return; 260 Return(0))); in TEST_F() 264 .WillOnce(Return(0)); in TEST_F() 268 Return(0))); in TEST_F() 275 EXPECT_CALL(mock_alsa_wrapper_, PcmClose(kFakeHandle)).WillOnce(Return(0)); in TEST_F() 277 .WillOnce(Return(kTestDeviceName)); in TEST_F() 289 .WillOnce(DoAll(SetArgumentPointee<0>(kFakeHandle), Return(0))); in TEST_F() 292 .WillOnce(Return(0)); in TEST_F() 296 Return(0))); in TEST_F() 304 .WillOnce(Return(0)); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/speech/extension_api/ |
D | tts_extension_apitest.cc | 33 using ::testing::Return; 201 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 203 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 205 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 207 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 209 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 211 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 213 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 215 .WillOnce(Return(true)); in IN_PROC_BROWSER_TEST_F() 217 .WillOnce(Return(true)); in IN_PROC_BROWSER_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() 183 EXPECT_CALL(mock(0), GetBrowserContext()).WillRepeatedly(Return( in TEST_F() 185 EXPECT_CALL(mock(1), GetBrowserContext()).WillRepeatedly(Return( in TEST_F() 204 EXPECT_CALL(mock(0), GetBrowserContext()).WillRepeatedly(Return( in TEST_F() 206 EXPECT_CALL(mock(1), GetBrowserContext()).WillRepeatedly(Return( in TEST_F() 225 EXPECT_CALL(mock(0), GetBrowserContext()).WillRepeatedly(Return( in TEST_F() 227 EXPECT_CALL(mock(1), GetBrowserContext()).WillRepeatedly(Return( in TEST_F() 325 EXPECT_CALL(mock(0), GetReceivedBytes()).WillRepeatedly(Return(0)); in TEST_F() 326 EXPECT_CALL(mock(1), GetReceivedBytes()).WillRepeatedly(Return(1)); in TEST_F() [all …]
|
D | download_shelf_unittest.cc | 23 using ::testing::Return; 76 ON_CALL(*download_item_, GetAutoOpened()).WillByDefault(Return(false)); in DownloadShelfTest() 77 ON_CALL(*download_item_, GetMimeType()).WillByDefault(Return("text/plain")); in DownloadShelfTest() 78 ON_CALL(*download_item_, GetOpenWhenComplete()).WillByDefault(Return(false)); in DownloadShelfTest() 80 .WillByDefault(Return(DownloadItem::TARGET_DISPOSITION_OVERWRITE)); in DownloadShelfTest() 84 .WillByDefault(Return(DownloadItem::IN_PROGRESS)); in DownloadShelfTest() 85 ON_CALL(*download_item_, IsTemporary()).WillByDefault(Return(false)); in DownloadShelfTest() 87 .WillByDefault(Return(false)); in DownloadShelfTest() 89 .WillByDefault(Return(profile())); in DownloadShelfTest() 94 .WillByDefault(Return(download_item_.get())); in DownloadShelfTest() [all …]
|
D | download_item_model_unittest.cc | 27 using ::testing::Return; 68 ON_CALL(item_, GetReceivedBytes()).WillByDefault(Return(1)); in SetupDownloadItemDefaults() 69 ON_CALL(item_, GetTotalBytes()).WillByDefault(Return(2)); in SetupDownloadItemDefaults() 70 ON_CALL(item_, TimeRemaining(_)).WillByDefault(Return(false)); in SetupDownloadItemDefaults() 71 ON_CALL(item_, GetMimeType()).WillByDefault(Return("text/html")); in SetupDownloadItemDefaults() 72 ON_CALL(item_, AllDataSaved()).WillByDefault(Return(false)); in SetupDownloadItemDefaults() 73 ON_CALL(item_, GetOpenWhenComplete()).WillByDefault(Return(false)); in SetupDownloadItemDefaults() 74 ON_CALL(item_, GetFileExternallyRemoved()).WillByDefault(Return(false)); in SetupDownloadItemDefaults() 76 .WillByDefault(Return(DownloadItem::IN_PROGRESS)); in SetupDownloadItemDefaults() 80 .WillByDefault(Return(base::FilePath(kDefaultDisplayFileName))); in SetupDownloadItemDefaults() [all …]
|
/external/chromium_org/media/formats/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() 92 EXPECT_CALL(client_, OnListStart(kWebMIdSegment)).WillOnce(Return(&client_)); in TEST_F() 93 EXPECT_CALL(client_, OnListStart(kWebMIdCluster)).WillOnce(Return(&client_)); in TEST_F() 94 EXPECT_CALL(client_, OnListEnd(kWebMIdCluster)).WillOnce(Return(true)); in TEST_F() [all …]
|
/external/chromium_org/extensions/browser/api/bluetooth_low_energy/ |
D | bluetooth_low_energy_apitest.cc | 39 using testing::Return; 111 .WillOnce(Return(BluetoothAdapter::ConstDeviceList())); in SetUpMocks() 271 .WillOnce(Return(static_cast<BluetoothDevice*>(NULL))) in IN_PROC_BROWSER_TEST_F() 272 .WillRepeatedly(Return(device0_.get())); in IN_PROC_BROWSER_TEST_F() 276 .WillOnce(Return(std::vector<BluetoothGattService*>())) in IN_PROC_BROWSER_TEST_F() 277 .WillOnce(Return(services)); in IN_PROC_BROWSER_TEST_F() 299 .WillOnce(Return(static_cast<BluetoothDevice*>(NULL))) in IN_PROC_BROWSER_TEST_F() 300 .WillRepeatedly(Return(device0_.get())); in IN_PROC_BROWSER_TEST_F() 304 .WillOnce(Return(static_cast<BluetoothGattService*>(NULL))) in IN_PROC_BROWSER_TEST_F() 305 .WillOnce(Return(service0_.get())); in IN_PROC_BROWSER_TEST_F() [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/chrome/renderer/translate/ |
D | translate_helper_browsertest.cc | 19 using testing::Return; 106 .WillRepeatedly(Return(true)); in TEST_F() 111 .WillRepeatedly(Return(false)); in TEST_F() 128 .WillRepeatedly(Return(true)); in TEST_F() 131 .WillOnce(Return(false)) in TEST_F() 132 .WillOnce(Return(true)); in TEST_F() 134 EXPECT_CALL(*translate_helper_, StartTranslation()).WillOnce(Return(true)); in TEST_F() 138 .WillRepeatedly(Return(false)); in TEST_F() 140 .WillOnce(Return(false)) in TEST_F() 141 .WillOnce(Return(false)) 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)
|
/external/chromium_org/third_party/mesa/src/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)
|
/external/chromium_org/media/audio/ |
D | audio_output_proxy_unittest.cc | 25 using ::testing::Return; 143 .WillRepeatedly(Return(message_loop_.message_loop_proxy())); in SetUp() 145 .WillRepeatedly(Return(message_loop_.message_loop_proxy())); in SetUp() 195 .WillOnce(Return(&stream)); in OpenAndClose() 197 .WillOnce(Return(true)); in OpenAndClose() 209 .WillOnce(Return(&stream)); in StartAndStop() 211 .WillOnce(Return(true)); in StartAndStop() 232 .WillOnce(Return(&stream)); in CloseAfterStop() 234 .WillOnce(Return(true)); in CloseAfterStop() 257 .WillOnce(Return(&stream)); in TwoStreams() [all …]
|
/external/chromium_org/android_webview/browser/net/ |
D | input_stream_reader_unittest.cc | 25 using testing::Return; 63 .WillOnce(Return(false)); in TEST_F() 74 Return(true))); in TEST_F() 77 .WillOnce(Return(false)); in TEST_F() 88 Return(true))); in TEST_F() 92 Return(true))); in TEST_F() 104 Return(true))); in TEST_F() 112 Return(true))) in TEST_F() 116 Return(true))) in TEST_F() 120 Return(true))) in TEST_F() [all …]
|
/external/llvm/test/Analysis/BlockFrequencyInfo/ |
D | double_exit.ll | 21 %Return.0 = phi i32 [ 0, %entry ], [ %Return.1, %outer.inc ] 33 %Return.1 = phi i32 [ %Return.0, %outer ], [ %call4, %inner.inc ] 50 %call4 = call i32 @logic2(i32 %Return.1, i32 %I.0, i32 %J.0) 65 %Return.2 = phi i32 [ %Return.1, %inner.body ], [ %Return.0, %outer ] 66 ret i32 %Return.2 94 %Return.0 = phi i32 [ 0, %entry ], [ %Return.3, %outer.inc ] 107 %Return.1 = phi i32 [ %Return.0, %outer ], [ %Return.2, %middle.inc ] 119 %Return.2 = phi i32 [ %Return.1, %middle ], [ %call7, %inner.inc ] 136 %call7 = call i32 @logic3(i32 %Return.2, i32 %I.0, i32 %J.0, i32 %K.0) 151 %Return.3 = phi i32 [ %Return.2, %inner.body ], [ %Return.1, %middle ] [all …]
|
/external/chromium_org/chrome/renderer/safe_browsing/ |
D | phishing_dom_feature_extractor_browsertest.cc | 45 using ::testing::Return; 191 EXPECT_CALL(clock_, Now()).WillRepeatedly(Return(base::TimeTicks::Now())); in IN_PROC_BROWSER_TEST_F() 246 EXPECT_CALL(clock_, Now()).WillRepeatedly(Return(base::TimeTicks::Now())); in IN_PROC_BROWSER_TEST_F() 298 EXPECT_CALL(clock_, Now()).WillRepeatedly(Return(base::TimeTicks::Now())); in IN_PROC_BROWSER_TEST_F() 341 EXPECT_CALL(clock_, Now()).WillRepeatedly(Return(base::TimeTicks::Now())); in IN_PROC_BROWSER_TEST_F() 418 .WillOnce(Return(now)) in IN_PROC_BROWSER_TEST_F() 420 .WillOnce(Return(now)) in IN_PROC_BROWSER_TEST_F() 422 .WillOnce(Return(now + base::TimeDelta::FromMilliseconds(6))) in IN_PROC_BROWSER_TEST_F() 425 .WillOnce(Return(now + base::TimeDelta::FromMilliseconds(12))) in IN_PROC_BROWSER_TEST_F() 427 .WillOnce(Return(now + base::TimeDelta::FromMilliseconds(22))) in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/gpu/command_buffer/service/ |
D | gpu_scheduler_unittest.cc | 22 using testing::Return; 48 .WillByDefault(Return(default_state)); in SetUp() 60 .WillOnce(Return(shared_memory_buffer_)); in SetUp() 91 .WillRepeatedly(Return(state)); in TEST_F() 109 .WillOnce(Return(shared_memory_buffer_)); in TEST_F() 127 .WillRepeatedly(Return(state)); in TEST_F() 131 .WillOnce(Return(error::kNoError)); in TEST_F() 151 .WillRepeatedly(Return(state)); in TEST_F() 154 .WillOnce(Return(error::kNoError)); in TEST_F() 157 .WillOnce(Return(error::kNoError)); in TEST_F() [all …]
|