Home
last modified time | relevance | path

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

12345678910>>...31

/system/update_engine/update_manager/
Dmock_policy.h35 UpdateCheckAllowed(testing::_, testing::_, testing::_, testing::_)) in MockPolicy()
36 .WillByDefault(testing::Invoke(&default_policy_, in MockPolicy()
40 testing::_, testing::_, testing::_, testing::_, testing::_)) in MockPolicy()
41 .WillByDefault(testing::Invoke(&default_policy_, in MockPolicy()
45 testing::_, testing::_, testing::_, testing::_, testing::_)) in MockPolicy()
47 testing::Invoke(&default_policy_, &DefaultPolicy::UpdateCanStart)); in MockPolicy()
48 ON_CALL(*this, P2PEnabled(testing::_, testing::_, testing::_, testing::_)) in MockPolicy()
50 testing::Invoke(&default_policy_, &DefaultPolicy::P2PEnabled)); in MockPolicy()
53 testing::_, testing::_, testing::_, testing::_, testing::_)) in MockPolicy()
54 .WillByDefault(testing::Invoke(&default_policy_, in MockPolicy()
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 …]
/system/update_engine/cros/
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.h200 inline testing::NiceMock<MockConnectionManager>* mock_connection_manager() { in mock_connection_manager()
220 inline testing::NiceMock<MockMetricsReporter>* mock_metrics_reporter() { in mock_metrics_reporter()
225 inline testing::NiceMock<MockPrefs>* mock_prefs() { in mock_prefs()
230 inline testing::NiceMock<MockPrefs>* mock_powerwash_safe_prefs() { in mock_powerwash_safe_prefs()
235 inline testing::NiceMock<MockPayloadState>* mock_payload_state() { in mock_payload_state()
240 inline testing::NiceMock<MockUpdateAttempter>* mock_update_attempter() { in mock_update_attempter()
245 inline testing::NiceMock<MockOmahaRequestParams>* mock_request_params() { in mock_request_params()
250 inline testing::NiceMock<MockP2PManager>* mock_p2p_manager() { in mock_p2p_manager()
272 testing::NiceMock<MockConnectionManager> mock_connection_manager_;
273 testing::NiceMock<MockMetricsReporter> mock_metrics_reporter_;
[all …]
Dmock_omaha_request_params.h36 testing::Invoke(this, &MockOmahaRequestParams::FakeGetAppId)); in MockOmahaRequestParams()
37 ON_CALL(*this, SetTargetChannel(testing::_, testing::_, testing::_)) in MockOmahaRequestParams()
38 .WillByDefault(testing::Invoke( in MockOmahaRequestParams()
41 .WillByDefault(testing::Invoke( in MockOmahaRequestParams()
44 .WillByDefault(testing::Invoke( in MockOmahaRequestParams()
/system/unwinding/libunwindstack/tests/
DDwarfSectionTest.cpp56 class DwarfSectionTest : public ::testing::Test {
68 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(nullptr)); in TEST_F()
80 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F()
93 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F()
94 EXPECT_CALL(*section_, GetCfaLocationInfo(0x1000, &fde, ::testing::_, ::testing::_)) in TEST_F()
95 .WillOnce(::testing::Return(false)); in TEST_F()
108 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F()
109 EXPECT_CALL(*section_, GetCfaLocationInfo(0x1000, &fde, ::testing::_, ::testing::_)) in TEST_F()
110 .WillOnce(::testing::Return(true)); in TEST_F()
113 EXPECT_CALL(*section_, Eval(&cie, &process, ::testing::_, &regs_, ::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::GetMinKernelKeyVersion)); in MockHardware()
53 testing::Invoke(&fake_, &FakeHardware::GetMinFirmwareKeyVersion)); in MockHardware()
55 .WillByDefault(testing::Invoke( in MockHardware()
[all …]
/system/bt/stack/test/hid/
Dstack_hid_test.cc41 using testing::_;
42 using testing::DoAll;
43 using testing::NotNull;
44 using testing::Pointee;
45 using testing::Return;
46 using testing::SaveArg;
47 using testing::SaveArgPointee;
48 using testing::StrEq;
49 using testing::StrictMock;
50 using testing::Test;
/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 …]
/system/bt/stack/test/btm/
Dpeer_packet_types_test.cc28 using testing::_;
29 using testing::DoAll;
30 using testing::NotNull;
31 using testing::Pointee;
32 using testing::Return;
33 using testing::SaveArg;
34 using testing::SaveArgPointee;
35 using testing::StrEq;
36 using testing::StrictMock;
37 using testing::Test;
Dstack_btm_test.cc84 using testing::_;
85 using testing::DoAll;
86 using testing::NotNull;
87 using testing::Pointee;
88 using testing::Return;
89 using testing::SaveArg;
90 using testing::SaveArgPointee;
91 using testing::StrEq;
92 using testing::StrictMock;
93 using testing::Test;
/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::MockClassicAclConnection* mock_acl_connection = new testing::MockClassicAclConnection(); in TEST_F()
70 … std::unique_ptr<testing::MockClassicAclConnection>(mock_acl_connection), in TEST_F()
83 testing::MockClassicAclConnection* mock_acl_connection = new testing::MockClassicAclConnection(); in TEST_F()
87 … std::unique_ptr<testing::MockClassicAclConnection>(mock_acl_connection), in TEST_F()
98 …user_handler.get(), common::testing::BindLambdaForTesting([&](hci::ErrorCode status) { my_status =… in TEST_F()
[all …]
Dlink_test.cc30 using ::testing::NiceMock;
41 using classic::internal::testing::MockDynamicChannelServiceImpl;
42 using classic::internal::testing::MockDynamicChannelServiceManagerImpl;
43 using hci::testing::MockClassicAclConnection;
44 using l2cap::internal::testing::MockParameterProvider;
45 using testing::MockFixedChannelServiceManagerImpl;
47 class L2capClassicLinkTest : public ::testing::Test {
128 ….WillByDefault(::testing::Return(SecurityPolicy::_SDP_ONLY_NO_SECURITY_WHATSOEVER_PLAINTEXT_TRANSP… in TEST_F()
131 .WillOnce(::testing::Return(&security_module_impl_)); in TEST_F()
132 EXPECT_CALL(mock_classic_dynamic_channel_service_manager_, GetService(::testing::_)) in TEST_F()
[all …]
/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::MockLeAclConnection* mock_acl_connection = new testing::MockLeAclConnection(); in TEST_F()
69 … std::unique_ptr<testing::MockLeAclConnection>(mock_acl_connection), nullptr /* LinkManager* */); in TEST_F()
80 testing::MockLeAclConnection* mock_acl_connection = new testing::MockLeAclConnection(); in TEST_F()
83 … std::unique_ptr<testing::MockLeAclConnection>(mock_acl_connection), nullptr /* LinkManager* */); in TEST_F()
92 …user_handler.get(), common::testing::BindLambdaForTesting([&](hci::ErrorCode status) { my_status =… in TEST_F()
105 testing::MockLeAclConnection* mock_acl_connection = new testing::MockLeAclConnection(); in TEST_F()
[all …]
/system/bt/gd/dumpsys/internal/test_data/
Dstruct_generated.h8 namespace testing {
55 const testing::TestSubTable* sub_table() const { in sub_table()
56 return GetPointer<const testing::TestSubTable*>(VT_SUB_TABLE); in sub_table()
68 void add_sub_table(flatbuffers::Offset<testing::TestSubTable> sub_table) { in add_sub_table()
83 … flatbuffers::FlatBufferBuilder& _fbb, flatbuffers::Offset<testing::TestSubTable> sub_table = 0) {
89 inline const testing::TestTableStruct* GetTestTableStruct(const void* buf) { in GetTestTableStruct()
90 return flatbuffers::GetRoot<testing::TestTableStruct>(buf); in GetTestTableStruct()
93 inline const testing::TestTableStruct* GetSizePrefixedTestTableStruct(const void* buf) { in GetSizePrefixedTestTableStruct()
94 return flatbuffers::GetSizePrefixedRoot<testing::TestTableStruct>(buf); in GetSizePrefixedTestTableStruct()
98 return verifier.VerifyBuffer<testing::TestTableStruct>(nullptr); in VerifyTestTableStructBuffer()
[all …]
Dstring_generated.h8 namespace testing {
53 return testing::CreateTestTableString(_fbb, test_string__);
56 inline const testing::TestTableString* GetTestTableString(const void* buf) { in GetTestTableString()
57 return flatbuffers::GetRoot<testing::TestTableString>(buf); in GetTestTableString()
60 inline const testing::TestTableString* GetSizePrefixedTestTableString(const void* buf) { in GetSizePrefixedTestTableString()
61 return flatbuffers::GetSizePrefixedRoot<testing::TestTableString>(buf); in GetSizePrefixedTestTableString()
65 return verifier.VerifyBuffer<testing::TestTableString>(nullptr); in VerifyTestTableStringBuffer()
69 return verifier.VerifySizePrefixedBuffer<testing::TestTableString>(nullptr); in VerifySizePrefixedTestTableStringBuffer()
77 flatbuffers::FlatBufferBuilder& fbb, flatbuffers::Offset<testing::TestTableString> root) { in FinishTestTableStringBuffer()
82 flatbuffers::FlatBufferBuilder& fbb, flatbuffers::Offset<testing::TestTableString> root) { in FinishSizePrefixedTestTableStringBuffer()
Dfloat_generated.h8 namespace testing {
49 inline const testing::TestTableFloat* GetTestTableFloat(const void* buf) { in GetTestTableFloat()
50 return flatbuffers::GetRoot<testing::TestTableFloat>(buf); in GetTestTableFloat()
53 inline const testing::TestTableFloat* GetSizePrefixedTestTableFloat(const void* buf) { in GetSizePrefixedTestTableFloat()
54 return flatbuffers::GetSizePrefixedRoot<testing::TestTableFloat>(buf); in GetSizePrefixedTestTableFloat()
58 return verifier.VerifyBuffer<testing::TestTableFloat>(nullptr); in VerifyTestTableFloatBuffer()
62 return verifier.VerifySizePrefixedBuffer<testing::TestTableFloat>(nullptr); in VerifySizePrefixedTestTableFloatBuffer()
70 flatbuffers::FlatBufferBuilder& fbb, flatbuffers::Offset<testing::TestTableFloat> root) { in FinishTestTableFloatBuffer()
75 flatbuffers::FlatBufferBuilder& fbb, flatbuffers::Offset<testing::TestTableFloat> root) { in FinishSizePrefixedTestTableFloatBuffer()
Dinteger_generated.h8 namespace testing {
49 inline const testing::TestTableInteger* GetTestTableInteger(const void* buf) { in GetTestTableInteger()
50 return flatbuffers::GetRoot<testing::TestTableInteger>(buf); in GetTestTableInteger()
53 inline const testing::TestTableInteger* GetSizePrefixedTestTableInteger(const void* buf) { in GetSizePrefixedTestTableInteger()
54 return flatbuffers::GetSizePrefixedRoot<testing::TestTableInteger>(buf); in GetSizePrefixedTestTableInteger()
58 return verifier.VerifyBuffer<testing::TestTableInteger>(nullptr); in VerifyTestTableIntegerBuffer()
62 return verifier.VerifySizePrefixedBuffer<testing::TestTableInteger>(nullptr); in VerifySizePrefixedTestTableIntegerBuffer()
70 flatbuffers::FlatBufferBuilder& fbb, flatbuffers::Offset<testing::TestTableInteger> root) { in FinishTestTableIntegerBuffer()
75 flatbuffers::FlatBufferBuilder& fbb, flatbuffers::Offset<testing::TestTableInteger> root) { in FinishSizePrefixedTestTableIntegerBuffer()
/system/bt/stack/test/hci/
Dstack_hci_test.cc33 using testing::_;
34 using testing::DoAll;
35 using testing::NotNull;
36 using testing::Pointee;
37 using testing::Return;
38 using testing::SaveArg;
39 using testing::SaveArgPointee;
40 using testing::StrEq;
41 using testing::StrictMock;
42 using testing::Test;
/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/dumpsys/
Dfilter_test.cc33 namespace testing { namespace
39 namespace testing { namespace
72 testing::DumpsysTestDataRootBuilder builder(fb_builder); in PopulateTestSchema()
95 dumpsys::ReflectionSchema reflection_schema(testing::GetBundledSchemaData()); in TEST_F()
99 const testing::DumpsysTestDataRoot* data_root = GetDumpsysTestDataRoot(dumpsys_data.data()); in TEST_F()
113 const testing::FooTestSchema* foo = data_root->foo_module_data(); in TEST_F()
130 dumpsys::ReflectionSchema reflection_schema(testing::GetBundledSchemaData()); in TEST_F()
134 …[[maybe_unused]] const testing::DumpsysTestDataRoot* data_root = GetDumpsysTestDataRoot(dumpsys_da… in TEST_F()
150 const testing::BazTestSchema* baz = data_root->baz_module_data(); in TEST_F()
153 const testing::BazSubTableAny* baz_any = baz->sub_table_any(); in TEST_F()
[all …]
/system/apex/apexd/
Dapexd_test_utils.h49 namespace testing {
51 using ::testing::AllOf;
52 using ::testing::Eq;
53 using ::testing::ExplainMatchResult;
54 using ::testing::Field;
55 using ::testing::Property;
58 inline ::testing::AssertionResult IsOk(const android::base::Result<T>& result) { in IsOk()
60 return ::testing::AssertionSuccess() << " is Ok"; in IsOk()
62 return ::testing::AssertionFailure() << " failed with " << result.error(); in IsOk()
66 inline ::testing::AssertionResult IsOk(const android::binder::Status& status) { in IsOk()
[all …]
/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()
/system/bt/gd/l2cap/internal/
Ddynamic_channel_allocator_fuzz_test.cc27 using classic::internal::testing::MockLink;
28 using hci::testing::MockClassicAclConnection;
29 using l2cap::internal::testing::MockParameterProvider;
30 using l2cap::internal::testing::MockScheduler;
31 using ::testing::NiceMock;
32 using ::testing::Return;

12345678910>>...31