/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | RegionSamplingTest.cpp | 31 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 …]
|
D | EventControlThreadTest.cpp | 32 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()
|
D | RefreshRateConfigsTest.cpp | 28 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()
|
D | DispSyncSourceTest.cpp | 36 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/ |
D | Locale_test.cpp | 26 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 …]
|
D | StringPiece_test.cpp | 38 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/ |
D | test_macros.h | 14 ::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/ |
D | BatteryTypeParser_test.cpp | 32 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;
|
D | SystemPropertiesParser_test.cpp | 32 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;
|
D | PageTypeInfoParser_test.cpp | 32 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;
|
D | KernelWakesParser_test.cpp | 32 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;
|
D | CpuFreqParser_test.cpp | 32 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;
|
D | EventLogTagsParser_test.cpp | 32 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/ |
D | VtsHalSensorManagerV1_0TargetTest.cpp | 48 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/ |
D | FakeComposerUtils.cpp | 70 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/ |
D | Common.h | 135 *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/ |
D | ID3Test.cpp | 36 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/ |
D | GLTest.cpp | 32 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/ |
D | dumpsys_test.cpp | 32 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/ |
D | main.cpp | 39 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/ |
D | IdAssigner_test.cpp | 23 ::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()
|
D | InlineXmlFormatParser_test.cpp | 21 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/ |
D | DecoderTest.cpp | 29 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/ |
D | XmlCompatVersioner_test.cpp | 23 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/ |
D | AaptGroupEntry_test.cpp | 25 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()
|