/system/update_engine/update_manager/ |
D | mock_policy.h | 35 ON_CALL(*this, UpdateCheckAllowed(testing::_, testing::_, testing::_, in MockPolicy() 36 testing::_)) in MockPolicy() 37 .WillByDefault(testing::Invoke( in MockPolicy() 39 ON_CALL(*this, UpdateCanStart(testing::_, testing::_, testing::_, in MockPolicy() 40 testing::_, testing::_)) in MockPolicy() 41 .WillByDefault(testing::Invoke( in MockPolicy() 43 ON_CALL(*this, UpdateDownloadAllowed(testing::_, testing::_, testing::_, in MockPolicy() 44 testing::_)) in MockPolicy() 45 .WillByDefault(testing::Invoke( in MockPolicy() 47 ON_CALL(*this, P2PEnabled(testing::_, testing::_, testing::_, testing::_)) in MockPolicy() [all …]
|
D | real_device_policy_provider_unittest.cc | 41 using testing::DoAll; 42 using testing::Mock; 43 using testing::Return; 44 using testing::ReturnRef; 45 using testing::SetArgPointee; 46 using testing::_; 50 class UmRealDevicePolicyProviderTest : public ::testing::Test { 93 testing::NiceMock<policy::MockDevicePolicy> mock_device_policy_; 94 testing::NiceMock<policy::MockPolicyProvider> mock_policy_provider_;
|
/system/update_engine/ |
D | mock_p2p_manager.h | 33 ON_CALL(*this, SetDevicePolicy(testing::_)) in MockP2PManager() 34 .WillByDefault(testing::Invoke(&fake_, in MockP2PManager() 37 .WillByDefault(testing::Invoke(&fake_, in MockP2PManager() 40 .WillByDefault(testing::Invoke(&fake_, in MockP2PManager() 43 .WillByDefault(testing::Invoke(&fake_, in MockP2PManager() 46 .WillByDefault(testing::Invoke(&fake_, in MockP2PManager() 48 ON_CALL(*this, LookupUrlForFile(testing::_, testing::_, testing::_, in MockP2PManager() 49 testing::_)) in MockP2PManager() 50 .WillByDefault(testing::Invoke(&fake_, in MockP2PManager() 52 ON_CALL(*this, FileShare(testing::_, testing::_)) in MockP2PManager() [all …]
|
D | fake_system_state.h | 184 inline testing::NiceMock<MockConnectionManager>* mock_connection_manager() { in mock_connection_manager() 194 inline testing::NiceMock<MetricsLibraryMock>* mock_metrics_lib() { in mock_metrics_lib() 199 inline testing::NiceMock<MockPrefs> *mock_prefs() { in mock_prefs() 204 inline testing::NiceMock<MockPrefs> *mock_powerwash_safe_prefs() { in mock_powerwash_safe_prefs() 209 inline testing::NiceMock<MockPayloadState>* mock_payload_state() { in mock_payload_state() 214 inline testing::NiceMock<MockUpdateAttempter>* mock_update_attempter() { in mock_update_attempter() 219 inline testing::NiceMock<MockOmahaRequestParams>* mock_request_params() { in mock_request_params() 224 inline testing::NiceMock<MockP2PManager>* mock_p2p_manager() { in mock_p2p_manager() 238 testing::NiceMock<MockConnectionManager> mock_connection_manager_; 240 testing::NiceMock<MetricsLibraryMock> mock_metrics_lib_; [all …]
|
D | mock_omaha_request_params.h | 36 .WillByDefault(testing::Invoke( in MockOmahaRequestParams() 39 .WillByDefault(testing::Invoke( in MockOmahaRequestParams() 41 ON_CALL(*this, SetTargetChannel(testing::_, testing::_, testing::_)) in MockOmahaRequestParams() 42 .WillByDefault(testing::Invoke( in MockOmahaRequestParams() 45 .WillByDefault(testing::Invoke( in MockOmahaRequestParams() 48 .WillByDefault(testing::Invoke( in MockOmahaRequestParams()
|
D | certificate_checker_unittest.cc | 30 using ::testing::DoAll; 31 using ::testing::Return; 32 using ::testing::SetArgumentPointee; 33 using ::testing::SetArrayArgument; 34 using ::testing::_; 46 class CertificateCheckerTest : public testing::Test { 73 testing::StrictMock<MockCertificateCheckObserver> observer_;
|
/system/core/libion/tests/ |
D | exit_test.cpp | 33 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 34 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F() 41 }, ::testing::ExitedWithCode(0), ""); in TEST_F() 51 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 52 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F() 59 }, ::testing::ExitedWithCode(0), ""); in TEST_F() 70 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 71 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F() 78 }, ::testing::ExitedWithCode(0), "") in TEST_F() 93 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() [all …]
|
D | allocate_test.cpp | 32 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 33 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F() 47 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 48 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F() 62 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 63 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F() 77 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 78 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F() 82 SCOPED_TRACE(::testing::Message() << "iteration " << i); in TEST_F() 96 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() [all …]
|
D | map_test.cpp | 33 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 34 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F() 62 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 63 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F() 85 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 117 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 118 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F() 143 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 144 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
|
/system/update_engine/common/ |
D | mock_hardware.h | 34 .WillByDefault(testing::Invoke(&fake_, in MockHardware() 37 .WillByDefault(testing::Invoke(&fake_, in MockHardware() 39 ON_CALL(*this, IsOOBEComplete(testing::_)) in MockHardware() 40 .WillByDefault(testing::Invoke(&fake_, in MockHardware() 43 .WillByDefault(testing::Invoke(&fake_, in MockHardware() 46 .WillByDefault(testing::Invoke(&fake_, in MockHardware() 49 .WillByDefault(testing::Invoke(&fake_, in MockHardware() 52 .WillByDefault(testing::Invoke(&fake_, in MockHardware() 54 ON_CALL(*this, GetNonVolatileDirectory(testing::_)) in MockHardware() 55 .WillByDefault(testing::Invoke(&fake_, in MockHardware() [all …]
|
/system/tpm/tpm_manager/server/ |
D | mock_local_data_store.cc | 19 using testing::_; 20 using testing::DoAll; 21 using testing::Return; 22 using testing::SaveArg; 23 using testing::SetArgPointee;
|
/system/tpm/trunks/ |
D | scoped_key_handle_test.cc | 26 using testing::_; 27 using testing::DoAll; 28 using testing::Invoke; 29 using testing::NiceMock; 30 using testing::Return; 31 using testing::SetArgPointee; 32 using testing::WithArgs; 37 class ScopedKeyHandleTest : public testing::Test {
|
D | hmac_session_test.cc | 28 using testing::_; 29 using testing::DoAll; 30 using testing::NiceMock; 31 using testing::Return; 32 using testing::SaveArg; 33 using testing::SetArgPointee; 37 class HmacSessionTest : public testing::Test {
|
D | background_command_transceiver_test.cc | 31 using testing::_; 32 using testing::Invoke; 33 using testing::InvokeWithoutArgs; 34 using testing::WithArgs; 62 class BackgroundTransceiverTest : public testing::Test {
|
/system/connectivity/shill/ |
D | dns_server_tester_unittest.cc | 39 using testing::_; 40 using testing::AtLeast; 41 using testing::DoAll; 42 using testing::InSequence; 43 using testing::Mock; 44 using testing::NiceMock; 45 using testing::Return; 46 using testing::ReturnRef; 47 using testing::SetArgumentPointee; 48 using testing::StrictMock; [all …]
|
D | mock_log_unittest.cc | 26 using ::testing::_; 32 static string ObjectID(testing::Test* m) { return "(mock_log_test)"; } in ObjectID() 35 class MockLogTest : public testing::Test { 42 void SlogSomething(testing::Test* t, const string& message) const { in SlogSomething() 69 ::testing::EndsWith("mock_log_unittest.cc"), kMessage)); in TEST_F() 106 EXPECT_CALL(log, Log(::testing::Lt(::logging::LOG_ERROR), in TEST_F() 107 ::testing::EndsWith(".cc"), in TEST_F() 108 ::testing::StartsWith("Some"))); in TEST_F()
|
D | mock_device.cc | 30 using ::testing::_; 31 using ::testing::DefaultValue; 32 using ::testing::ReturnRef; 52 .WillByDefault(testing::ReturnRef(Device::connection())); in MockDevice()
|
D | link_monitor_unittest.cc | 39 using testing::_; 40 using testing::AnyNumber; 41 using testing::HasSubstr; 42 using testing::Invoke; 43 using testing::Mock; 44 using testing::NiceMock; 45 using testing::Return; 46 using testing::ReturnRef; 47 using testing::SetArgumentPointee; 48 using testing::StrictMock; [all …]
|
D | property_observer_unittest.cc | 30 using testing::_; 31 using testing::DoAll; 32 using testing::Mock; 33 using testing::Return; 44 class PropertyObserverTest : public testing::Test {
|
D | testing.h | 86 << testing::PrintToString(value.properties()); 127 ::testing::PolymorphicAction<SetErrorTypeInArgumentAction<error_argument_index>> 129 return ::testing::MakePolymorphicAction( in SetOperationFailedInArgumentAndWarn() 138 ::testing::PolymorphicAction<SetErrorTypeInArgumentAction<error_argument_index>> 140 return ::testing::MakePolymorphicAction( in SetErrorTypeInArgument()
|
D | external_task_unittest.cc | 41 using testing::_; 42 using testing::Matcher; 43 using testing::MatchesRegex; 44 using testing::Mock; 45 using testing::NiceMock; 46 using testing::Return; 47 using testing::SetArgumentPointee; 48 using testing::StrEq; 52 class ExternalTaskTest : public testing::Test,
|
D | passive_link_monitor_unittest.cc | 40 using testing::_; 41 using testing::AnyNumber; 42 using testing::HasSubstr; 43 using testing::Mock; 44 using testing::NiceMock; 45 using testing::Return; 46 using testing::ReturnRef; 47 using testing::StrictMock; 48 using testing::Test;
|
/system/connectivity/shill/dhcp/ |
D | dhcp_provider_unittest.cc | 30 using testing::_; 31 using testing::DoAll; 32 using testing::Return; 33 using testing::SaveArg; 34 using testing::SetArgPointee; 35 using testing::StrictMock; 36 using testing::Test;
|
/system/tpm/attestation/common/ |
D | mock_crypto_utility.cc | 19 using ::testing::_; 20 using ::testing::Invoke; 21 using ::testing::Return; 22 using ::testing::WithArgs;
|
/system/core/liblog/tests/ |
D | benchmark.h | 27 namespace testing { 130 static inline void BenchmarkAddArg(::testing::Benchmark* b, const char* name, T arg) { in BenchmarkAddArg() 131 ::testing::BenchmarkWantsArg<T>* ba; in BenchmarkAddArg() 132 ba = static_cast< ::testing::BenchmarkWantsArg<T>* >(b); in BenchmarkAddArg() 144 static ::testing::Benchmark* _benchmark_##f __attribute__((unused)) = \ 145 (::testing::Benchmark*)::testing::BenchmarkFactory(#f, f)
|