/system/update_engine/update_manager/ |
D | mock_policy.h | 36 UpdateCheckAllowed(testing::_, testing::_, testing::_, testing::_)) in MockPolicy() 37 .WillByDefault(testing::Invoke(&default_policy_, in MockPolicy() 41 testing::_, testing::_, testing::_, testing::_, testing::_)) in MockPolicy() 42 .WillByDefault(testing::Invoke(&default_policy_, in MockPolicy() 46 testing::_, testing::_, testing::_, testing::_, testing::_)) in MockPolicy() 48 testing::Invoke(&default_policy_, &DefaultPolicy::UpdateCanStart)); in MockPolicy() 51 UpdateDownloadAllowed(testing::_, testing::_, testing::_, testing::_)) in MockPolicy() 52 .WillByDefault(testing::Invoke(&default_policy_, in MockPolicy() 54 ON_CALL(*this, P2PEnabled(testing::_, testing::_, testing::_, testing::_)) in MockPolicy() 56 testing::Invoke(&default_policy_, &DefaultPolicy::P2PEnabled)); in MockPolicy() [all …]
|
D | weekly_time_unittest.cc | 43 : public testing::TestWithParam<tuple<int /* start_day_of_week */, 66 testing::Values(std::make_tuple(kThursday, 75 testing::Values(std::make_tuple(kMonday, 85 testing::Values(std::make_tuple(kSaturday, 94 testing::Values(std::make_tuple(kSaturday, 102 : public testing::TestWithParam<tuple<int /* day_of_week */, 123 testing::Values(std::make_tuple(kTuesday, 131 testing::Values(std::make_tuple( 139 testing::Values(std::make_tuple( 146 : public testing::TestWithParam<tuple<int /* test_day_of_week */, [all …]
|
D | real_system_provider_unittest.cc | 35 using testing::_; 36 using testing::DoAll; 37 using testing::Return; 38 using testing::SetArgPointee; 48 class UmRealSystemProviderTest : public ::testing::Test { 113 testing::Mock::VerifyAndClearExpectations(kiosk_app_proxy_mock_.get()); in TEST_F()
|
/system/update_engine/ |
D | mock_p2p_manager.h | 33 ON_CALL(*this, SetDevicePolicy(testing::_)) in MockP2PManager() 35 testing::Invoke(&fake_, &FakeP2PManager::SetDevicePolicy)); in MockP2PManager() 37 .WillByDefault(testing::Invoke(&fake_, &FakeP2PManager::IsP2PEnabled)); in MockP2PManager() 40 testing::Invoke(&fake_, &FakeP2PManager::EnsureP2PRunning)); in MockP2PManager() 43 testing::Invoke(&fake_, &FakeP2PManager::EnsureP2PNotRunning)); in MockP2PManager() 46 testing::Invoke(&fake_, &FakeP2PManager::PerformHousekeeping)); in MockP2PManager() 48 LookupUrlForFile(testing::_, testing::_, testing::_, testing::_)) in MockP2PManager() 50 testing::Invoke(&fake_, &FakeP2PManager::LookupUrlForFile)); in MockP2PManager() 51 ON_CALL(*this, FileShare(testing::_, testing::_)) in MockP2PManager() 52 .WillByDefault(testing::Invoke(&fake_, &FakeP2PManager::FileShare)); in MockP2PManager() [all …]
|
D | fake_system_state.h | 189 inline testing::NiceMock<MockConnectionManager>* mock_connection_manager() { in mock_connection_manager() 199 inline testing::NiceMock<MockMetricsReporter>* mock_metrics_reporter() { in mock_metrics_reporter() 204 inline testing::NiceMock<MockPrefs>* mock_prefs() { in mock_prefs() 209 inline testing::NiceMock<MockPrefs>* mock_powerwash_safe_prefs() { in mock_powerwash_safe_prefs() 214 inline testing::NiceMock<MockPayloadState>* mock_payload_state() { in mock_payload_state() 219 inline testing::NiceMock<MockUpdateAttempter>* mock_update_attempter() { in mock_update_attempter() 224 inline testing::NiceMock<MockOmahaRequestParams>* mock_request_params() { in mock_request_params() 229 inline testing::NiceMock<MockP2PManager>* mock_p2p_manager() { in mock_p2p_manager() 243 testing::NiceMock<MockConnectionManager> mock_connection_manager_; 245 testing::NiceMock<MockMetricsReporter> mock_metrics_reporter_; [all …]
|
D | mock_omaha_request_params.h | 37 testing::Invoke(this, &MockOmahaRequestParams::FakeGetAppId)); in MockOmahaRequestParams() 38 ON_CALL(*this, SetTargetChannel(testing::_, testing::_, testing::_)) in MockOmahaRequestParams() 39 .WillByDefault(testing::Invoke( in MockOmahaRequestParams() 42 .WillByDefault(testing::Invoke( in MockOmahaRequestParams() 45 .WillByDefault(testing::Invoke( in MockOmahaRequestParams()
|
D | certificate_checker_unittest.cc | 31 using ::testing::_; 32 using ::testing::DoAll; 33 using ::testing::Return; 34 using ::testing::SetArgPointee; 35 using ::testing::SetArrayArgument; 46 class CertificateCheckerTest : public testing::Test { 71 testing::StrictMock<MockCertificateCheckObserver> observer_;
|
/system/core/libunwindstack/tests/ |
D | DwarfSectionTest.cpp | 52 class DwarfSectionTest : public ::testing::Test { 61 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(nullptr)); in TEST_F() 72 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F() 84 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F() 85 EXPECT_CALL(*section_, GetCfaLocationInfo(0x1000, &fde, ::testing::_)) in TEST_F() 86 .WillOnce(::testing::Return(false)); in TEST_F() 98 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F() 99 EXPECT_CALL(*section_, GetCfaLocationInfo(0x1000, &fde, ::testing::_)) in TEST_F() 100 .WillOnce(::testing::Return(true)); in TEST_F() 103 EXPECT_CALL(*section_, Eval(&cie, &process, ::testing::_, nullptr, ::testing::_)) in TEST_F() [all …]
|
D | ElfTest.cpp | 41 class ElfTest : public ::testing::Test { 340 .WillOnce(::testing::Return(true)); in TEST_F() 363 EXPECT_CALL(*interface, GetGlobalVariable(global, &offset)).WillOnce(::testing::Return(false)); in TEST_F() 379 .WillOnce(::testing::DoAll(::testing::SetArgPointee<1>(0x300), ::testing::Return(true))); in TEST_F() 395 .WillOnce(::testing::DoAll(::testing::SetArgPointee<1>(0x300), ::testing::Return(true))); in TEST_F() 413 EXPECT_CALL(*interface, GetGlobalVariable(global, &offset)).WillOnce(::testing::Return(false)); in TEST_F() 416 .WillOnce(::testing::DoAll(::testing::SetArgPointee<1>(0x500), ::testing::Return(true))); in TEST_F() 432 .WillOnce(::testing::DoAll(::testing::SetArgPointee<1>(0x300), ::testing::Return(true))); in TEST_F() 451 .WillOnce(::testing::DoAll(::testing::SetArgPointee<1>(0x850), ::testing::Return(true))); in TEST_F() 470 .WillOnce(::testing::DoAll(::testing::SetArgPointee<1>(0x850), ::testing::Return(true))); in TEST_F() [all …]
|
/system/update_engine/common/ |
D | mock_hardware.h | 34 .WillByDefault(testing::Invoke(&fake_, &FakeHardware::IsOfficialBuild)); in MockHardware() 37 testing::Invoke(&fake_, &FakeHardware::IsNormalBootMode)); in MockHardware() 40 testing::Invoke(&fake_, &FakeHardware::AreDevFeaturesEnabled)); in MockHardware() 42 .WillByDefault(testing::Invoke(&fake_, &FakeHardware::IsOOBEEnabled)); in MockHardware() 43 ON_CALL(*this, IsOOBEComplete(testing::_)) in MockHardware() 44 .WillByDefault(testing::Invoke(&fake_, &FakeHardware::IsOOBEComplete)); in MockHardware() 47 testing::Invoke(&fake_, &FakeHardware::GetHardwareClass)); in MockHardware() 50 testing::Invoke(&fake_, &FakeHardware::GetFirmwareVersion)); in MockHardware() 52 .WillByDefault(testing::Invoke(&fake_, &FakeHardware::GetECVersion)); in MockHardware() 55 testing::Invoke(&fake_, &FakeHardware::GetMinKernelKeyVersion)); in MockHardware() [all …]
|
/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 | 33 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 34 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F() 48 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 49 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F() 63 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 64 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F() 78 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 79 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F() 83 SCOPED_TRACE(::testing::Message() << "iteration " << i); in TEST_F() 97 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/apex/apexd/ |
D | apexd_test_utils.h | 29 namespace testing { 31 using ::testing::AllOf; 32 using ::testing::Eq; 33 using ::testing::ExplainMatchResult; 34 using ::testing::Field; 36 inline ::testing::AssertionResult IsOk(const Status& status) { in IsOk() 38 return ::testing::AssertionSuccess() << " is Ok"; in IsOk() 40 return ::testing::AssertionFailure() in IsOk() 46 inline ::testing::AssertionResult IsOk(const StatusOr<T>& status_or) { in IsOk() 48 return ::testing::AssertionSuccess() << " is Ok"; in IsOk() [all …]
|
/system/core/fastboot/fuzzy_fastboot/ |
D | test_listeners.h | 32 class MinimalistPrinter : public ::testing::EmptyTestEventListener { 34 virtual void OnTestStart(const ::testing::TestInfo& test_info) { in OnTestStart() 39 virtual void OnTestPartResult(const ::testing::TestPartResult& test_part_result) { in OnTestPartResult() 46 virtual void OnTestEnd(const ::testing::TestInfo& test_info) { in OnTestEnd()
|
/system/connectivity/wificond/tests/ |
D | offload_callback_test.cpp | 33 using testing::NiceMock; 38 class OffloadCallbackTest : public ::testing::Test { 58 ON_CALL(*handlers_, OnScanResultHandler(testing::_)) in TEST_F() 59 .WillByDefault(testing::Invoke( in TEST_F() 75 ON_CALL(*handlers_, OnErrorHandler(testing::_)) in TEST_F() 76 .WillByDefault(testing::Invoke( in TEST_F()
|
D | ap_interface_impl_unittest.cpp | 39 using testing::NiceMock; 40 using testing::Invoke; 41 using testing::Return; 42 using testing::Sequence; 43 using testing::StrEq; 44 using testing::_; 68 class ApInterfaceImplTest : public ::testing::Test {
|
/system/core/libprocessgroup/profiles/ |
D | test_vendor.cpp | 56 ::testing::Values(MakeTestParam<Cgroups>(kVendorCgroups))); 58 ::testing::Values(MakeTestParam<Cgroups>(kVendorCgroups))); 61 ::testing::Values(MakeTestParam<TaskProfiles>(kVendorTaskProfiles))); 63 ::testing::Values(MakeTestParam<TaskProfiles>(kVendorTaskProfiles))); 69 ::testing::InitGoogleTest(&argc, argv); in main()
|
D | test.cpp | 37 ::testing::Values(MakeTestParam<Cgroups>("/cgroups.json"), 41 ::testing::Values(MakeTestParam<Cgroups>("/cgroups.json"), 44 ::testing::Values(MakeTestParam<TaskProfiles>("/task_profiles.json"))); 50 ::testing::InitGoogleTest(&argc, argv); in main()
|
/system/netd/server/ |
D | NFLogListenerTest.cpp | 30 using ::testing::_; 31 using ::testing::DoAll; 32 using ::testing::Exactly; 33 using ::testing::Invoke; 34 using ::testing::Return; 35 using ::testing::SaveArg; 36 using ::testing::StrictMock; 60 class NFLogListenerTest : public testing::Test {
|
/system/bt/service/test/ |
D | low_energy_client_unittest.cc | 28 using ::testing::_; 29 using ::testing::Return; 30 using ::testing::Pointee; 31 using ::testing::DoAll; 32 using ::testing::Invoke; 80 class LowEnergyClientTest : public ::testing::Test { 104 testing::MockAdapter mock_adapter_; 156 ::testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in RegisterTestClient() 204 ::testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F() 235 ::testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F() [all …]
|
/system/extras/libjsonpb/verify/ |
D | test.cpp | 31 using ::testing::ElementsAre; 32 using ::testing::HasSubstr; 39 class LibJsonpbVerifyTest : public ::testing::Test {}; 218 ::testing::AssertionResult IsJsonEq(const std::string& l, in IsJsonEq() 223 return ::testing::AssertionFailure() in IsJsonEq() 227 return ::testing::AssertionFailure() in IsJsonEq() 231 ? (::testing::AssertionSuccess() << "Both are \n" in IsJsonEq() 233 : (::testing::AssertionFailure() in IsJsonEq() 267 public ::testing::WithParamInterface<ScalarTestErrorParam> {}; 291 ::testing::ValuesIn(gScalarTestErrorParams)); [all …]
|
/system/hardware/interfaces/net/netd/1.0/vts/functional/ |
D | VtsHalNetNetdV1_0TargetTest.cpp | 30 class NetdHidlEnvironment : public ::testing::VtsHalHidlTargetTestEnvBase { 44 class NetdHidlTest : public ::testing::VtsHalHidlTargetTestBase { 47 netd = ::testing::VtsHalHidlTargetTestBase::getService<INetd>( in SetUp() 90 ::testing::AddGlobalTestEnvironment(NetdHidlEnvironment::Instance()); in main() 91 ::testing::InitGoogleTest(&argc, argv); in main()
|
/system/bt/stack/test/ |
D | ble_advertiser_test.cc | 27 using ::testing::Args; 28 using ::testing::Contains; 29 using ::testing::ElementsAreArray; 30 using ::testing::Exactly; 31 using ::testing::Field; 32 using ::testing::IsEmpty; 33 using ::testing::SaveArg; 34 using ::testing::SizeIs; 35 using ::testing::_; 142 class BleAdvertisingManagerTest : public testing::Test { [all …]
|
/system/core/base/ |
D | quick_exit_test.cpp | 39 ASSERT_EXIT(android::base::quick_exit(123), testing::ExitedWithCode(123), ""); in TEST() 44 ASSERT_EXIT(android::base::quick_exit(123), testing::ExitedWithCode(123), ""); in TEST() 53 ASSERT_EXIT(android::base::quick_exit(123), testing::ExitedWithCode(42), ""); in TEST()
|