Home
last modified time | relevance | path

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

12345678910>>...33

/frameworks/native/services/surfaceflinger/tests/unittests/
DRegionSamplingTest.cpp31 struct RegionSamplingTest : testing::Test {
46 testing::FloatEq(1.0f)); in TEST_F()
52 testing::FloatEq(0.0f)); in TEST_F()
63 testing::FloatEq(0.0f)); in TEST_F()
73 testing::FloatNear(0.083f, 0.01f)); in TEST_F()
81 testing::AnyOf(testing::FloatEq(1.0), testing::FloatEq(0.0f))); in TEST_F()
90 testing::Eq(0.0)); in TEST_F()
94 testing::Eq(0.0)); in TEST_F()
98 testing::Eq(0.0)); in TEST_F()
102 testing::Eq(0.0)); in TEST_F()
[all …]
DEventControlThreadTest.cpp32 using testing::_;
34 class EventControlThreadTest : public testing::Test {
49 const ::testing::TestInfo* const test_info = in EventControlThreadTest()
50 ::testing::UnitTest::GetInstance()->current_test_info(); in EventControlThreadTest()
55 const ::testing::TestInfo* const test_info = in ~EventControlThreadTest()
56 ::testing::UnitTest::GetInstance()->current_test_info(); in ~EventControlThreadTest()
DRefreshRateConfigsTest.cpp28 using testing::_;
36 class RefreshRateConfigsTest : public testing::Test {
57 const ::testing::TestInfo* const test_info = in RefreshRateConfigsTest()
58 ::testing::UnitTest::GetInstance()->current_test_info(); in RefreshRateConfigsTest()
63 const ::testing::TestInfo* const test_info = in ~RefreshRateConfigsTest()
64 ::testing::UnitTest::GetInstance()->current_test_info(); in ~RefreshRateConfigsTest()
DDispSyncSourceTest.cpp36 using testing::Return;
38 class DispSyncSourceTest : public testing::Test, private VSyncSource::Callback {
59 const ::testing::TestInfo* const test_info = in DispSyncSourceTest()
60 ::testing::UnitTest::GetInstance()->current_test_info(); in DispSyncSourceTest()
65 const ::testing::TestInfo* const test_info = in ~DispSyncSourceTest()
66 ::testing::UnitTest::GetInstance()->current_test_info(); in ~DispSyncSourceTest()
/frameworks/base/libs/androidfw/tests/
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 …]
DStringPiece_test.cpp38 std::string testing("testing"); in TEST() local
42 EXPECT_TRUE(StringPiece(testing) > banana); in TEST()
43 EXPECT_TRUE(StringPiece(testing) > car); in TEST()
44 EXPECT_TRUE(StringPiece(banana) < testing); in TEST()
46 EXPECT_TRUE(StringPiece(car) < testing); in TEST()
51 std::string testing("testing"); in TEST() local
55 EXPECT_TRUE(StringPiece(testing) > banana); in TEST()
56 EXPECT_TRUE(StringPiece(testing) > car); in TEST()
57 EXPECT_TRUE(StringPiece(banana) < testing); in TEST()
59 EXPECT_TRUE(StringPiece(car) < testing); in TEST()
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/test/
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()
52 ::testing::AssertionResult CmpArrayLikeFloatNe( in CmpArrayLikeFloatNe()
57 return ::testing::AssertionSuccess(); in CmpArrayLikeFloatNe()
61 ::testing::Message message; in CmpArrayLikeFloatNe()
66 return ::testing::AssertionFailure(message); in CmpArrayLikeFloatNe()
[all …]
/frameworks/base/cmds/incident_helper/tests/
DBatteryTypeParser_test.cpp32 using ::testing::StrEq;
33 using ::testing::Test;
34 using ::testing::internal::CaptureStderr;
35 using ::testing::internal::CaptureStdout;
36 using ::testing::internal::GetCapturedStderr;
37 using ::testing::internal::GetCapturedStdout;
DSystemPropertiesParser_test.cpp32 using ::testing::StrEq;
33 using ::testing::Test;
34 using ::testing::internal::CaptureStderr;
35 using ::testing::internal::CaptureStdout;
36 using ::testing::internal::GetCapturedStderr;
37 using ::testing::internal::GetCapturedStdout;
DPageTypeInfoParser_test.cpp32 using ::testing::StrEq;
33 using ::testing::Test;
34 using ::testing::internal::CaptureStderr;
35 using ::testing::internal::CaptureStdout;
36 using ::testing::internal::GetCapturedStderr;
37 using ::testing::internal::GetCapturedStdout;
DKernelWakesParser_test.cpp32 using ::testing::StrEq;
33 using ::testing::Test;
34 using ::testing::internal::CaptureStderr;
35 using ::testing::internal::CaptureStdout;
36 using ::testing::internal::GetCapturedStderr;
37 using ::testing::internal::GetCapturedStdout;
DCpuFreqParser_test.cpp32 using ::testing::StrEq;
33 using ::testing::Test;
34 using ::testing::internal::CaptureStderr;
35 using ::testing::internal::CaptureStdout;
36 using ::testing::internal::GetCapturedStderr;
37 using ::testing::internal::GetCapturedStdout;
DEventLogTagsParser_test.cpp32 using ::testing::StrEq;
33 using ::testing::Test;
34 using ::testing::internal::CaptureStderr;
35 using ::testing::internal::CaptureStdout;
36 using ::testing::internal::GetCapturedStderr;
37 using ::testing::internal::GetCapturedStdout;
/frameworks/hardware/interfaces/sensorservice/1.0/vts/functional/
DVtsHalSensorManagerV1_0TargetTest.cpp48 static inline ::testing::AssertionResult isOk(const Return<T> &ret) { in isOk()
50 ? ::testing::AssertionSuccess() in isOk()
51 : ::testing::AssertionFailure()) << ret.description(); in isOk()
56 inline ::testing::AssertionResult isOk(const Return<Result> &ret) { in isOk()
58 ? ::testing::AssertionSuccess() in isOk()
59 : ::testing::AssertionFailure()) in isOk()
64 static inline ::testing::AssertionResult isOk(Result result) { in isOk()
67 ? ::testing::AssertionSuccess() in isOk()
68 : ::testing::AssertionFailure()) << toString(result); in isOk()
72 static ::testing::AssertionResult isIncreasing(I begin, I end, F getField) { in isIncreasing()
[all …]
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DFakeComposerUtils.cpp70 bool valuesMatch(::testing::AssertionResult& message, const T& ref, const T& val, in valuesMatch()
79 ::testing::AssertionResult rectsAreSame(const RenderState& ref, const RenderState& val) { in rectsAreSame()
84 ::testing::AssertionResult message = ::testing::AssertionFailure(); in rectsAreSame()
94 return ::testing::AssertionSuccess(); in rectsAreSame()
99 ::testing::AssertionResult framesAreSame(const std::vector<RenderState>& ref, in framesAreSame()
101 ::testing::AssertionResult message = ::testing::AssertionFailure(); in framesAreSame()
108 ::testing::AssertionResult rectResult = rectsAreSame(ref[rectIndex], val[rectIndex]); in framesAreSame()
117 return ::testing::AssertionSuccess(); in framesAreSame()
/frameworks/base/tools/aapt2/test/
DCommon.h135 *out << ::testing::PrintToString(value.value()); in PrintTo()
145 ::testing::PrintToString(android::StringPiece16(a))) {
150 class ValueEqImpl : public ::testing::MatcherInterface<T> {
155 bool MatchAndExplain(T x, ::testing::MatchResultListener* listener) const override { in MatchAndExplain()
182 operator ::testing::Matcher<T>() const {
183 return ::testing::Matcher<T>(new ValueEqImpl<T>(&expected_));
199 operator ::testing::Matcher<T>() const {
200 return ::testing::Matcher<T>(new ValueEqImpl<T>(expected_));
219 std::string(negation ? "isn't" : "is") + " equal to " + ::testing::PrintToString(a)) {
225 ::testing::PrintToString(name)) {
[all …]
/frameworks/av/media/libstagefright/id3/test/
DID3Test.cpp36 class ID3tagTest : public ::testing::TestWithParam<string> {};
37 class ID3versionTest : public ::testing::TestWithParam<pair<string, int>> {};
38 class ID3textTagTest : public ::testing::TestWithParam<pair<string, int>> {};
39 class ID3albumArtTest : public ::testing::TestWithParam<pair<string, bool>> {};
40 class ID3multiAlbumArtTest : public ::testing::TestWithParam<pair<string, int>> {};
179 ::testing::Values("bbb_1sec_v23.mp3",
193 ::testing::Values(make_pair("bbb_1sec_v23.mp3", ID3::ID3_V2_3),
208 ::testing::Values(
223 ::testing::Values(make_pair("bbb_1sec_v23.mp3", false),
233 ::testing::Values(make_pair("bbb_1sec_v23.mp3", 0),
[all …]
/frameworks/native/libs/gui/tests/
DGLTest.cpp32 const ::testing::TestInfo* const testInfo = in SetUp()
33 ::testing::UnitTest::GetInstance()->current_test_info(); in SetUp()
136 const ::testing::TestInfo* const testInfo = in TearDown()
137 ::testing::UnitTest::GetInstance()->current_test_info(); in TearDown()
177 ::testing::AssertionResult GLTest::checkPixel(int x, int y, in checkPixel()
188 return ::testing::AssertionFailure(::testing::Message(msg.string())); in checkPixel()
212 return ::testing::AssertionFailure(::testing::Message(msg.string())); in checkPixel()
214 return ::testing::AssertionSuccess(); in checkPixel()
218 ::testing::AssertionResult GLTest::assertRectEq(const Rect &r1, const Rect &r2, in assertRectEq()
248 return ::testing::AssertionFailure(::testing::Message(msg.string())); in assertRectEq()
[all …]
/frameworks/native/cmds/dumpsys/tests/
Ddumpsys_test.cpp32 using ::testing::_;
33 using ::testing::Action;
34 using ::testing::ActionInterface;
35 using ::testing::DoAll;
36 using ::testing::Eq;
37 using ::testing::HasSubstr;
38 using ::testing::MakeAction;
39 using ::testing::Mock;
40 using ::testing::Not;
41 using ::testing::Return;
[all …]
/frameworks/base/libs/hwui/tests/unit/
Dmain.cpp39 auto testinfo = ::testing::UnitTest::GetInstance()->current_test_info(); in gtestSigHandler()
50 class TypefaceEnvironment : public testing::Environment {
72 testing::InitGoogleTest(&argc, argv); in main()
73 testing::InitGoogleMock(&argc, argv); in main()
75 testing::AddGlobalTestEnvironment(new TypefaceEnvironment()); in main()
/frameworks/base/tools/aapt2/compile/
DIdAssigner_test.cpp23 ::testing::AssertionResult VerifyIds(ResourceTable* table);
132 ::testing::AssertionResult VerifyIds(ResourceTable* table) { in VerifyIds()
136 return ::testing::AssertionFailure() << "package " << package->name in VerifyIds()
141 return ::testing::AssertionFailure() in VerifyIds()
151 return ::testing::AssertionFailure() << "type " << type->type in VerifyIds()
157 return ::testing::AssertionFailure() in VerifyIds()
168 return ::testing::AssertionFailure() in VerifyIds()
174 return ::testing::AssertionFailure() in VerifyIds()
182 return ::testing::AssertionSuccess() << "all IDs are unique and assigned"; in VerifyIds()
DInlineXmlFormatParser_test.cpp21 using ::testing::Eq;
22 using ::testing::IsNull;
23 using ::testing::Not;
24 using ::testing::NotNull;
25 using ::testing::SizeIs;
26 using ::testing::StrEq;
/frameworks/av/media/tests/benchmark/tests/
DDecoderTest.cpp29 class DecoderTest : public ::testing::TestWithParam<tuple<string, string, bool>> {};
101 ::testing::Values(make_tuple("bbb_44100hz_2ch_128kbps_aac_30sec.mp4", "", false),
111 ::testing::Values(make_tuple("bbb_44100hz_2ch_128kbps_aac_30sec.mp4", "", true),
120 ::testing::Values(
149 ::testing::Values(
179 ::testing::AddGlobalTestEnvironment(gEnv); in main()
180 ::testing::InitGoogleTest(&argc, argv); in main()
/frameworks/base/tools/aapt2/link/
DXmlCompatVersioner_test.cpp23 using ::testing::Eq;
24 using ::testing::IsNull;
25 using ::testing::NotNull;
26 using ::testing::Pointee;
27 using ::testing::SizeIs;
46 class XmlCompatVersionerTest : public ::testing::Test {
/frameworks/base/tools/aapt/tests/
DAaptGroupEntry_test.cpp25 static ::testing::AssertionResult TestParse(AaptGroupEntry& entry, const String8& dirName, in TestParse()
28 return ::testing::AssertionSuccess() << dirName << " was successfully parsed"; in TestParse()
30 return ::testing::AssertionFailure() << dirName << " could not be parsed"; in TestParse()
33 static ::testing::AssertionResult TestParse(AaptGroupEntry& entry, const char* input, in TestParse()

12345678910>>...33