Home
last modified time | relevance | path

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

12345678910>>...117

/aosp12/system/update_engine/update_manager/
H A 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()
H A 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 …]
/aosp12/system/update_engine/cros/
H A Dmock_p2p_manager.h33 ON_CALL(*this, SetDevicePolicy(testing::_)) in MockP2PManager()
35 testing::Invoke(&fake_, &FakeP2PManager::SetDevicePolicy)); in MockP2PManager()
40 testing::Invoke(&fake_, &FakeP2PManager::EnsureP2PRunning)); in MockP2PManager()
48 LookupUrlForFile(testing::_, testing::_, testing::_, testing::_)) in MockP2PManager()
51 ON_CALL(*this, FileShare(testing::_, testing::_)) in MockP2PManager()
53 ON_CALL(*this, FileGetPath(testing::_)) in MockP2PManager()
55 ON_CALL(*this, FileGetSize(testing::_)) in MockP2PManager()
57 ON_CALL(*this, FileGetExpectedSize(testing::_)) in MockP2PManager()
60 ON_CALL(*this, FileGetVisible(testing::_, testing::_)) in MockP2PManager()
62 testing::Invoke(&fake_, &FakeP2PManager::FileGetVisible)); in MockP2PManager()
[all …]
H A Dfake_system_state.h225 inline testing::NiceMock<MockPrefs>* mock_prefs() { in mock_prefs()
230 inline testing::NiceMock<MockPrefs>* mock_powerwash_safe_prefs() { in mock_powerwash_safe_prefs()
250 inline testing::NiceMock<MockP2PManager>* mock_p2p_manager() { in mock_p2p_manager()
273 testing::NiceMock<MockMetricsReporter> mock_metrics_reporter_;
274 testing::NiceMock<MockPrefs> mock_prefs_;
275 testing::NiceMock<MockPrefs> mock_powerwash_safe_prefs_;
276 testing::NiceMock<MockPayloadState> mock_payload_state_;
277 testing::NiceMock<MockUpdateAttempter> mock_update_attempter_;
278 testing::NiceMock<MockOmahaRequestParams> mock_request_params_;
279 testing::NiceMock<MockP2PManager> mock_p2p_manager_;
[all …]
/aosp12/packages/modules/DnsResolver/tests/
H A Dresolv_stats_test_utils.h37 return ::testing::ExplainMatchResult(
38 ::testing::AllOf(
39 ::testing::Property("rcode", &DnsQueryEvent::rcode,
40 ::testing::Eq(other.rcode())),
41 ::testing::Property("ns_type", &DnsQueryEvent::type,
42 ::testing::Eq(other.type())),
44 ::testing::Eq(other.cache_hit())),
48 ::testing::Eq(other.protocol())),
91 return ::testing::ExplainMatchResult(
92 ::testing::AllOf(
[all …]
/aosp12/packages/services/Car/cpp/watchdog/server/tests/
H A DUidProcStatsCollectorTestUtils.h30 return ::testing::Value(actual.comm, ::testing::Eq(expected.comm)) &&
31 ::testing::Value(actual.startTime, ::testing::Eq(expected.startTime)) &&
32 ::testing::Value(actual.totalMajorFaults, ::testing::Eq(expected.totalMajorFaults)) &&
33 ::testing::Value(actual.totalTasksCount, ::testing::Eq(expected.totalTasksCount)) &&
34 ::testing::Value(actual.ioBlockedTasksCount,
35 ::testing::Eq(expected.ioBlockedTasksCount));
47 return ::testing::Value(actual.totalMajorFaults, ::testing::Eq(expected.totalMajorFaults)) &&
48 ::testing::Value(actual.totalTasksCount, ::testing::Eq(expected.totalTasksCount)) &&
49 ::testing::Value(actual.ioBlockedTasksCount,
50 ::testing::Eq(expected.ioBlockedTasksCount)) &&
[all …]
H A DPackageInfoTestUtils.h52 return ::testing::Value(actual.name, ::testing::Eq(expected.name)) &&
53 ::testing::Value(actual.uid, ::testing::Eq(expected.uid));
58 return ::testing::Value(actual.packageIdentifier,
60 ::testing::Value(actual.uidType, ::testing::Eq(expected.uidType)) &&
61 ::testing::Value(actual.sharedUidPackages,
62 ::testing::UnorderedElementsAreArray(expected.sharedUidPackages)) &&
63 ::testing::Value(actual.componentType, ::testing::Eq(expected.componentType)) &&
64 ::testing::Value(actual.appCategoryType, ::testing::Eq(expected.appCategoryType));
/aosp12/system/unwinding/libunwindstack/tests/
H A DDwarfSectionTest.cpp94 EXPECT_CALL(*section_, GetCfaLocationInfo(0x1000, &fde, ::testing::_, ::testing::_)) in TEST_F()
95 .WillOnce(::testing::Return(false)); 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()
114 .WillOnce(::testing::Return(true)); in TEST_F()
136 EXPECT_CALL(*section_, GetCfaLocationInfo(0x1000, &fde, ::testing::_, ::testing::_)) in TEST_F()
140 EXPECT_CALL(*section_, Eval(&cie, &process, ::testing::_, &regs_, ::testing::_)) in TEST_F()
157 EXPECT_CALL(*section_, GetCfaLocationInfo(0x1000, &fde0, ::testing::_, ::testing::_)) in TEST_F()
161 EXPECT_CALL(*section_, Eval(&cie, &process, ::testing::_, &regs_, ::testing::_)) in TEST_F()
[all …]
/aosp12/hardware/interfaces/tv/tuner/config/api/
H A Dcurrent.txt2 package android.media.tuner.testing.configuration.V1_0 {
162 … method @Nullable public android.media.tuner.testing.configuration.V1_0.DvbsScanType getScanType();
174 …enum_constant public static final android.media.tuner.testing.configuration.V1_0.DvbsScanType JESS;
219 method @Nullable public android.media.tuner.testing.configuration.V1_0.DvrTypeEnum getType();
228 … method public void setType(@Nullable android.media.tuner.testing.configuration.V1_0.DvrTypeEnum);
314 … method @Nullable public android.media.tuner.testing.configuration.V1_0.FrontendTypeEnum getType();
422 method @Nullable public android.media.tuner.testing.configuration.V1_0.LnbToneEnum getTone();
427 … method public void setTone(@Nullable android.media.tuner.testing.configuration.V1_0.LnbToneEnum);
494 method @Nullable public android.media.tuner.testing.configuration.V1_0.Version getVersion();
497 method public void setVersion(@Nullable android.media.tuner.testing.configuration.V1_0.Version);
[all …]
/aosp12/system/update_engine/common/
H A Dmock_hardware.h37 testing::Invoke(&fake_, &FakeHardware::IsNormalBootMode)); in MockHardware()
40 testing::Invoke(&fake_, &FakeHardware::AreDevFeaturesEnabled)); in MockHardware()
43 ON_CALL(*this, IsOOBEComplete(testing::_)) in MockHardware()
47 testing::Invoke(&fake_, &FakeHardware::GetHardwareClass)); in MockHardware()
55 .WillByDefault(testing::Invoke( in MockHardware()
58 .WillByDefault(testing::Invoke( in MockHardware()
65 testing::Invoke(&fake_, &FakeHardware::GetPowerwashCount)); in MockHardware()
66 ON_CALL(*this, GetNonVolatileDirectory(testing::_)) in MockHardware()
69 ON_CALL(*this, GetPowerwashSafeDirectory(testing::_)) in MockHardware()
73 .WillByDefault(testing::Invoke( in MockHardware()
[all …]
/aosp12/system/bt/gd/l2cap/classic/internal/
H A Dfixed_channel_impl_test.cc33 using ::testing::_;
34 using testing::MockLink;
35 using ::testing::Return;
66 testing::MockClassicAclConnection* mock_acl_connection = new testing::MockClassicAclConnection(); in TEST_F()
83 testing::MockClassicAclConnection* mock_acl_connection = new testing::MockClassicAclConnection(); in TEST_F()
112 testing::MockClassicAclConnection* mock_acl_connection = new testing::MockClassicAclConnection(); in TEST_F()
142 testing::MockClassicAclConnection* mock_acl_connection = new testing::MockClassicAclConnection(); in TEST_F()
175 testing::MockClassicAclConnection* mock_acl_connection = new testing::MockClassicAclConnection(); in TEST_F()
204 testing::MockClassicAclConnection* mock_acl_connection = new testing::MockClassicAclConnection(); in TEST_F()
222 testing::MockClassicAclConnection* mock_acl_connection = new testing::MockClassicAclConnection(); in TEST_F()
[all …]
/aosp12/system/memory/libion/tests/
H A Dexit_test.cpp31 SCOPED_TRACE(::testing::Message() in TEST_F()
43 ::testing::ExitedWithCode(0), ""); in TEST_F()
53 SCOPED_TRACE(::testing::Message() in TEST_F()
77 SCOPED_TRACE(::testing::Message() in TEST_F()
92 ::testing::ExitedWithCode(0), ""); in TEST_F()
101 SCOPED_TRACE(::testing::Message() in TEST_F()
118 ::testing::ExitedWithCode(0), ""); in TEST_F()
127 SCOPED_TRACE(::testing::Message() in TEST_F()
152 SCOPED_TRACE(::testing::Message() in TEST_F()
179 SCOPED_TRACE(::testing::Message() in TEST_F()
[all …]
/aosp12/system/bt/gd/l2cap/le/internal/
H A Dfixed_channel_impl_test.cc35 using testing::MockLink;
36 using ::testing::Return;
66 testing::MockLeAclConnection* mock_acl_connection = new testing::MockLeAclConnection(); in TEST_F()
80 testing::MockLeAclConnection* mock_acl_connection = new testing::MockLeAclConnection(); in TEST_F()
105 testing::MockLeAclConnection* mock_acl_connection = new testing::MockLeAclConnection(); in TEST_F()
130 testing::MockLeAclConnection* mock_acl_connection = new testing::MockLeAclConnection(); in TEST_F()
158 testing::MockLeAclConnection* mock_acl_connection = new testing::MockLeAclConnection(); in TEST_F()
182 testing::MockLeAclConnection* mock_acl_connection = new testing::MockLeAclConnection(); in TEST_F()
195 testing::MockLeAclConnection* mock_acl_connection = new testing::MockLeAclConnection(); in TEST_F()
208 testing::MockLeAclConnection* mock_acl_connection = new testing::MockLeAclConnection(); in TEST_F()
[all …]
/aosp12/hardware/interfaces/audio/common/all-versions/test/utility/include/utility/
H A DAssertOk.h38 inline ::testing::AssertionResult assertIsOk(const char* expr, const Return<T>& ret) { in assertIsOk()
39 return ::testing::AssertionResult(ret.isOk()) in assertIsOk()
53 inline ::testing::AssertionResult assertResult(const char* e_expr, const char* r_expr, in assertResult()
55 return ::testing::AssertionResult(expected == result) in assertResult()
62 inline ::testing::AssertionResult assertResult(const char* e_expr, const char* r_expr, in assertResult()
70 inline ::testing::AssertionResult assertResult(const char* e_expr, const char* r_expr, in assertResult()
74 return ::testing::AssertionSuccess(); // result is in expected in assertResult()
76 return ::testing::AssertionFailure() in assertResult()
79 << "\n Which is: " << ::testing::PrintToString(expected); in assertResult()
96 inline ::testing::AssertionResult assertOk(const char* expr, Result result) { in assertOk()
[all …]
/aosp12/build/blueprint/pathtools/
H A Dfs_test.go97 t.Run(test.from, func(t *testing.T) {
106 func runTestFs(t *testing.T, f func(t *testing.T, fs FileSystem, dir string)) {
112 t.Run("relpath", func(t *testing.T) {
115 t.Run("abspath", func(t *testing.T) {
120 t.Run("mock", func(t *testing.T) {
124 t.Run("os", func(t *testing.T) {
142 func TestFs_IsDir(t *testing.T) {
294 func TestFs_Readlink(t *testing.T) {
353 func TestFs_Lstat(t *testing.T) {
421 func TestFs_Stat(t *testing.T) {
[all …]
/aosp12/build/soong/jar/
H A Djar_test.go23 func TestGetJavaPackage(t *testing.T) {
66 t.Run(tt.name, func(t *testing.T) {
80 func Test_javaIdentRune(t *testing.T) {
147 t.Run("first", func(t *testing.T) {
148 t.Run("valid", func(t *testing.T) {
150 t.Run(string(ch), func(t *testing.T) {
156 t.Run("invalid", func(t *testing.T) {
158 t.Run(string(ch), func(t *testing.T) {
165 t.Run("part", func(t *testing.T) {
166 t.Run("valid", func(t *testing.T) {
[all …]
/aosp12/build/soong/android/
H A Dtest_asserts.go28 func AssertSame(t *testing.T, message string, expected interface{}, actual interface{}) {
37 func AssertBoolEquals(t *testing.T, message string, expected bool, actual bool) {
46 func AssertIntEquals(t *testing.T, message string, expected int, actual int) {
55 func AssertStringEquals(t *testing.T, message string, expected string, actual string) {
64 func AssertPathRelativeToTopEquals(t *testing.T, message string, expected string, actual Path) {
93 func AssertErrorMessageEquals(t *testing.T, message string, expected string, actual error) {
105 func AssertTrimmedStringEquals(t *testing.T, message string, expected string, actual string) {
113 func AssertStringDoesContain(t *testing.T, message string, s string, expectedSubstring string) {
143 func AssertStringListContains(t *testing.T, message string, list []string, s string) {
152 func AssertStringListDoesNotContain(t *testing.T, message string, list []string, s string) {
[all …]
H A Dconfig_test.go61 func TestValidateConfigAnnotations(t *testing.T) {
77 func TestProductConfigAnnotations(t *testing.T) {
84 func TestMissingVendorConfig(t *testing.T) {
111 func TestBootJarsMarshaling(t *testing.T) {
128 func TestConfiguredJarList(t *testing.T) {
131 t.Run("create", func(t *testing.T) {
152 t.Run("append", func(t *testing.T) {
156 t.Run("append does not modify", func(t *testing.T) {
162 t.Run("append does not share", func(t *testing.T) {
168 t.Run("remove", func(t *testing.T) {
[all …]
H A Dutil_test.go76 t.Run("list", func(t *testing.T) {
79 t.Run("map", func(t *testing.T) {
135 func TestJoinWithPrefix(t *testing.T) {
174 func TestIndexList(t *testing.T) {
213 func TestInList(t *testing.T) {
244 func TestPrefixInList(t *testing.T) {
279 func TestFilterList(t *testing.T) {
303 func TestFilterListPred(t *testing.T) {
428 func TestSplitFileExt(t *testing.T) {
493 func Test_Shard(t *testing.T) {
[all …]
H A Ddepset_test.go67 func TestDepSet(t *testing.T) {
255 t.Run(tt.name, func(t *testing.T) {
256 t.Run("postorder", func(t *testing.T) {
262 t.Run("preorder", func(t *testing.T) {
278 func TestDepSetInvalidOrder(t *testing.T) {
308 func Test_firstUnique(t *testing.T) {
321 t.Run("list", func(t *testing.T) {
326 t.Run("map", func(t *testing.T) {
334 func Benchmark_firstUnique(b *testing.B) {
380 b.Run("same", func(b *testing.B) {
[all …]
/aosp12/system/bt/stack/test/hid/
H A 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;
/aosp12/frameworks/native/services/surfaceflinger/tests/unittests/
H A DRegionSamplingTest.cpp94 testing::Eq(0.0)); in TEST_F()
98 testing::Eq(0.0)); in TEST_F()
102 testing::Eq(0.0)); in TEST_F()
106 testing::Eq(0.0)); in TEST_F()
117 testing::Eq(1.0)); in TEST_F()
120 testing::Eq(1.0)); in TEST_F()
123 testing::Eq(0.0)); in TEST_F()
126 testing::Eq(0.0)); in TEST_F()
131 testing::Eq(0.0)); in TEST_F()
134 testing::Eq(0.0)); in TEST_F()
[all …]
/aosp12/system/bt/stack/test/btm/
H A 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;
/aosp12/frameworks/base/libs/androidfw/tests/
H A DLocale_test.cpp26 static ::testing::AssertionResult TestLanguage(const char* input, in TestLanguage()
32 return ::testing::AssertionFailure() << " failed to parse '" << input in TestLanguage()
37 return ::testing::AssertionFailure() in TestLanguage()
44 return ::testing::AssertionFailure() in TestLanguage()
49 return ::testing::AssertionSuccess(); in TestLanguage()
52 static ::testing::AssertionResult TestLanguageRegion(const char* input, in TestLanguageRegion()
59 return ::testing::AssertionFailure() << " failed to parse '" << input in TestLanguageRegion()
64 return ::testing::AssertionFailure() in TestLanguageRegion()
71 return ::testing::AssertionFailure() in TestLanguageRegion()
78 return ::testing::AssertionFailure() in TestLanguageRegion()
[all …]
/aosp12/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/test/
H A Dtest_macros.h14 ::testing::AssertionResult CmpArrayLikeFloatEq( in CmpArrayLikeFloatEq()
19 return ::testing::AssertionFailure() in CmpArrayLikeFloatEq()
28 return ::testing::AssertionSuccess(); in CmpArrayLikeFloatEq()
32 ::testing::AssertionResult CmpMatrixLikeFloatEq( in CmpMatrixLikeFloatEq()
38 return ::testing::AssertionFailure() in CmpMatrixLikeFloatEq()
48 return ::testing::AssertionSuccess(); in CmpMatrixLikeFloatEq()
57 return ::testing::AssertionSuccess(); in CmpArrayLikeFloatNe()
61 ::testing::Message message; in CmpArrayLikeFloatNe()
66 return ::testing::AssertionFailure(message); in CmpArrayLikeFloatNe()
76 return ::testing::AssertionSuccess(); in CmpMatrixLikeFloatNe()
[all …]

12345678910>>...117