Home
last modified time | relevance | path

Searched refs:testing (Results 1 – 25 of 424) sorted by relevance

12345678910>>...17

/system/update_engine/update_manager/
Dmock_policy.h35 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 …]
Dreal_device_policy_provider_unittest.cc41 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/
Dmock_p2p_manager.h33 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 …]
Dfake_system_state.h184 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 …]
Dmock_omaha_request_params.h36 .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()
Dcertificate_checker_unittest.cc30 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/
Dexit_test.cpp33 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 …]
Dallocate_test.cpp32 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 …]
Dmap_test.cpp33 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/
Dmock_hardware.h34 .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/
Dmock_local_data_store.cc19 using testing::_;
20 using testing::DoAll;
21 using testing::Return;
22 using testing::SaveArg;
23 using testing::SetArgPointee;
/system/tpm/trunks/
Dscoped_key_handle_test.cc26 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 {
Dhmac_session_test.cc28 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 {
Dbackground_command_transceiver_test.cc31 using testing::_;
32 using testing::Invoke;
33 using testing::InvokeWithoutArgs;
34 using testing::WithArgs;
62 class BackgroundTransceiverTest : public testing::Test {
/system/connectivity/shill/
Ddns_server_tester_unittest.cc39 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 …]
Dmock_log_unittest.cc26 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()
Dmock_device.cc30 using ::testing::_;
31 using ::testing::DefaultValue;
32 using ::testing::ReturnRef;
52 .WillByDefault(testing::ReturnRef(Device::connection())); in MockDevice()
Dlink_monitor_unittest.cc39 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 …]
Dproperty_observer_unittest.cc30 using testing::_;
31 using testing::DoAll;
32 using testing::Mock;
33 using testing::Return;
44 class PropertyObserverTest : public testing::Test {
Dtesting.h86 << 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()
Dexternal_task_unittest.cc41 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,
Dpassive_link_monitor_unittest.cc40 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/
Ddhcp_provider_unittest.cc30 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/
Dmock_crypto_utility.cc19 using ::testing::_;
20 using ::testing::Invoke;
21 using ::testing::Return;
22 using ::testing::WithArgs;
/system/core/liblog/tests/
Dbenchmark.h27 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)

12345678910>>...17