Home
last modified time | relevance | path

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

12345678910>>...24

/system/update_engine/update_manager/
Dmock_policy.h36 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 …]
Dweekly_time_unittest.cc43 : 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 …]
Dreal_system_provider_unittest.cc35 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/
Dmock_p2p_manager.h33 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 …]
Dfake_system_state.h189 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 …]
Dmock_omaha_request_params.h37 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()
Dcertificate_checker_unittest.cc31 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/
DDwarfSectionTest.cpp53 class DwarfSectionTest : public ::testing::Test {
62 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(nullptr)); in TEST_F()
73 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F()
85 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F()
86 EXPECT_CALL(*section_, GetCfaLocationInfo(0x1000, &fde, ::testing::_)) in TEST_F()
87 .WillOnce(::testing::Return(false)); in TEST_F()
99 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F()
100 EXPECT_CALL(*section_, GetCfaLocationInfo(0x1000, &fde, ::testing::_)) in TEST_F()
101 .WillOnce(::testing::Return(true)); in TEST_F()
104 EXPECT_CALL(*section_, Eval(&cie, &process, ::testing::_, nullptr, ::testing::_)) in TEST_F()
[all …]
/system/update_engine/common/
Dmock_hardware.h34 .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/memory/libion/tests/
Dexit_test.cpp31 SCOPED_TRACE(::testing::Message() in TEST_F()
33 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
43 ::testing::ExitedWithCode(0), ""); in TEST_F()
53 SCOPED_TRACE(::testing::Message() in TEST_F()
55 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
65 ::testing::ExitedWithCode(0), "") in TEST_F()
77 SCOPED_TRACE(::testing::Message() in TEST_F()
79 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
92 ::testing::ExitedWithCode(0), ""); in TEST_F()
101 SCOPED_TRACE(::testing::Message() in TEST_F()
[all …]
Dallocate_test.cpp31 SCOPED_TRACE(::testing::Message() in TEST_F()
33 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
46 SCOPED_TRACE(::testing::Message() in TEST_F()
48 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
61 SCOPED_TRACE(::testing::Message() in TEST_F()
63 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
77 SCOPED_TRACE(::testing::Message() in TEST_F()
79 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
83 SCOPED_TRACE(::testing::Message() << "iteration " << i); in TEST_F()
94 SCOPED_TRACE(::testing::Message() in TEST_F()
[all …]
Dmap_test.cpp31 SCOPED_TRACE(::testing::Message() in TEST_F()
33 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
53 SCOPED_TRACE(::testing::Message() in TEST_F()
84 SCOPED_TRACE(::testing::Message() in TEST_F()
86 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
109 SCOPED_TRACE(::testing::Message() in TEST_F()
111 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
/system/bt/gd/l2cap/le/internal/
Dfixed_channel_impl_test.cc34 using l2cap::internal::testing::MockParameterProvider;
35 using testing::MockLink;
36 using ::testing::Return;
38 class L2capLeFixedChannelImplTest : public ::testing::Test {
66 testing::MockAclConnection* mock_acl_connection = new testing::MockAclConnection(); in TEST_F()
70 std::unique_ptr<testing::MockAclConnection>(mock_acl_connection)); in TEST_F()
81 testing::MockAclConnection* mock_acl_connection = new testing::MockAclConnection(); in TEST_F()
85 std::unique_ptr<testing::MockAclConnection>(mock_acl_connection)); in TEST_F()
94 …user_handler.get(), common::testing::BindLambdaForTesting([&](hci::ErrorCode status) { my_status =… in TEST_F()
107 testing::MockAclConnection* mock_acl_connection = new testing::MockAclConnection(); in TEST_F()
[all …]
/system/bt/gd/l2cap/classic/internal/
Dfixed_channel_impl_test.cc32 using l2cap::internal::testing::MockParameterProvider;
33 using ::testing::_;
34 using testing::MockLink;
35 using ::testing::Return;
37 class L2capClassicFixedChannelImplTest : public ::testing::Test {
66 testing::MockAclConnection* mock_acl_connection = new testing::MockAclConnection(); in TEST_F()
72 std::unique_ptr<testing::MockAclConnection>(mock_acl_connection)); in TEST_F()
84 testing::MockAclConnection* mock_acl_connection = new testing::MockAclConnection(); in TEST_F()
90 std::unique_ptr<testing::MockAclConnection>(mock_acl_connection)); in TEST_F()
100 …user_handler.get(), common::testing::BindLambdaForTesting([&](hci::ErrorCode status) { my_status =… in TEST_F()
[all …]
/system/apex/apexd/
Dapexd_test_utils.h29 namespace testing {
31 using ::testing::AllOf;
32 using ::testing::Eq;
33 using ::testing::ExplainMatchResult;
34 using ::testing::Field;
37 inline ::testing::AssertionResult IsOk(const android::base::Result<T>& result) { in IsOk()
39 return ::testing::AssertionSuccess() << " is Ok"; in IsOk()
41 return ::testing::AssertionFailure() << " failed with " << result.error(); in IsOk()
45 inline ::testing::AssertionResult IsOk(const android::binder::Status& status) { in IsOk()
47 return ::testing::AssertionSuccess() << " is Ok"; in IsOk()
[all …]
/system/core/fastboot/fuzzy_fastboot/
Dtest_listeners.h32 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/bt/gd/l2cap/internal/
Ddynamic_channel_allocator_fuzz_test.cc27 using classic::internal::testing::MockLink;
28 using hci::testing::MockAclConnection;
29 using l2cap::internal::testing::MockParameterProvider;
30 using l2cap::internal::testing::MockScheduler;
31 using ::testing::NiceMock;
32 using ::testing::Return;
Dfixed_channel_allocator_test.cc29 using l2cap::classic::internal::testing::MockFixedChannelImpl;
30 using l2cap::classic::internal::testing::MockLink;
31 using testing::MockParameterProvider;
32 using ::testing::Return;
36 class L2capFixedChannelAllocatorTest : public ::testing::Test {
/system/core/libprocessgroup/profiles/
Dtest_vendor.cpp56 ::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()
Dtest.cpp37 ::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/core/fs_mgr/liblp/include/liblp/
Dmock_property_fetcher.h25 namespace testing {
34 using ::testing::_; in MockPropertyFetcher()
35 using ::testing::Invoke; in MockPropertyFetcher()
47 std::make_unique<::testing::NiceMock<MockPropertyFetcher>>()); in ResetMockPropertyFetcher()
/system/netd/server/
DNFLogListenerTest.cpp30 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/iorap/tests/src/maintenance/
Dcontroller_test.cc33 using ::testing::Return;
34 using ::testing::_;
35 using ::testing::SaveArg;
36 using ::testing::SaveArgPointee;
55 class ControllerTest: public ::testing::Test {
/system/extras/libjsonpb/verify/
Dtest.cpp31 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/bt/service/test/
Dlow_energy_client_unittest.cc28 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 …]

12345678910>>...24