Home
last modified time | relevance | path

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

12345678910>>...25

/frameworks/base/tools/aapt2/
DLocale_test.cpp27 static ::testing::AssertionResult TestLanguage(const char* input, in TestLanguage()
33 return ::testing::AssertionFailure() << " failed to parse '" << input in TestLanguage()
38 return ::testing::AssertionFailure() in TestLanguage()
45 return ::testing::AssertionFailure() in TestLanguage()
50 return ::testing::AssertionSuccess(); in TestLanguage()
53 static ::testing::AssertionResult TestLanguageRegion(const char* input, in TestLanguageRegion()
60 return ::testing::AssertionFailure() << " failed to parse '" << input in TestLanguageRegion()
65 return ::testing::AssertionFailure() in TestLanguageRegion()
72 return ::testing::AssertionFailure() in TestLanguageRegion()
79 return ::testing::AssertionFailure() in TestLanguageRegion()
[all …]
/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/libs/androidfw/tests/
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/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/
DMouseInputHandler_RangeTest.java19 import static androidx.recyclerview.selection.testing.TestEvents.Mouse.CLICK;
20 import static androidx.recyclerview.selection.testing.TestEvents.Mouse.SECONDARY_CLICK;
21 import static androidx.recyclerview.selection.testing.TestEvents.Mouse.SHIFT_CLICK;
26 import androidx.recyclerview.selection.testing.SelectionProbe;
27 import androidx.recyclerview.selection.testing.SelectionTrackers;
28 import androidx.recyclerview.selection.testing.TestAdapter;
29 import androidx.recyclerview.selection.testing.TestData;
30 import androidx.recyclerview.selection.testing.TestFocusDelegate;
31 import androidx.recyclerview.selection.testing.TestItemDetails;
32 import androidx.recyclerview.selection.testing.TestItemDetailsLookup;
[all …]
DMouseInputHandlerTest.java19 import static androidx.recyclerview.selection.testing.TestEvents.Mouse.ALT_CLICK;
20 import static androidx.recyclerview.selection.testing.TestEvents.Mouse.CLICK;
21 import static androidx.recyclerview.selection.testing.TestEvents.Mouse.CTRL_CLICK;
22 import static androidx.recyclerview.selection.testing.TestEvents.Mouse.SECONDARY_CLICK;
23 import static androidx.recyclerview.selection.testing.TestEvents.Mouse.SHIFT_CLICK;
24 import static androidx.recyclerview.selection.testing.TestEvents.Mouse.TERTIARY_CLICK;
33 import androidx.recyclerview.selection.testing.SelectionProbe;
34 import androidx.recyclerview.selection.testing.SelectionTrackers;
35 import androidx.recyclerview.selection.testing.TestAdapter;
36 import androidx.recyclerview.selection.testing.TestData;
[all …]
DTouchInputHandlerTest.java19 import static androidx.recyclerview.selection.testing.TestEvents.Touch.TAP;
28 import androidx.recyclerview.selection.testing.SelectionProbe;
29 import androidx.recyclerview.selection.testing.SelectionTrackers;
30 import androidx.recyclerview.selection.testing.TestAdapter;
31 import androidx.recyclerview.selection.testing.TestData;
32 import androidx.recyclerview.selection.testing.TestFocusDelegate;
33 import androidx.recyclerview.selection.testing.TestItemDetailsLookup;
34 import androidx.recyclerview.selection.testing.TestItemKeyProvider;
35 import androidx.recyclerview.selection.testing.TestOnItemActivatedListener;
36 import androidx.recyclerview.selection.testing.TestRunnable;
[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;
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;
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;
/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/unittests/
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()
/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()
180 operator ::testing::Matcher<T>() const {
181 return ::testing::Matcher<T>(new ValueEqImpl<T>(&expected_));
195 operator ::testing::Matcher<T>() const {
196 return ::testing::Matcher<T>(new ValueEqImpl<T>(expected_));
215 std::string(negation ? "isn't" : "is") + " equal to " + ::testing::PrintToString(a)) {
221 ::testing::PrintToString(name)) {
[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/base/libs/hwui/tests/unit/
Dmain.cpp41 auto testinfo = ::testing::UnitTest::GetInstance()->current_test_info(); in gtestSigHandler()
52 class TypefaceEnvironment : public testing::Environment {
74 testing::InitGoogleTest(&argc, argv); in main()
75 testing::InitGoogleMock(&argc, argv); in main()
77 testing::AddGlobalTestEnvironment(new TypefaceEnvironment()); in main()
/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/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/aapt2/compile/
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;
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()
/frameworks/base/tools/aapt/tests/
DAaptGroupEntry_test.cpp26 static ::testing::AssertionResult TestParse(AaptGroupEntry& entry, const String8& dirName, in TestParse()
29 return ::testing::AssertionSuccess() << dirName << " was successfully parsed"; in TestParse()
31 return ::testing::AssertionFailure() << dirName << " could not be parsed"; in TestParse()
34 static ::testing::AssertionResult TestParse(AaptGroupEntry& entry, const char* input, in TestParse()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp29 using ::testing::Gt;
30 using ::testing::IsNull;
31 using ::testing::NotNull;
35 class TableFlattenerTest : public ::testing::Test {
42 ::testing::AssertionResult Flatten(IAaptContext* context, const TableFlattenerOptions& options, in Flatten()
47 return ::testing::AssertionFailure() << "failed to flatten ResourceTable"; in Flatten()
50 return ::testing::AssertionSuccess(); in Flatten()
53 ::testing::AssertionResult Flatten(IAaptContext* context, const TableFlattenerOptions& options, in Flatten()
62 return ::testing::AssertionFailure() << "flattened ResTable is corrupt"; in Flatten()
64 return ::testing::AssertionSuccess(); in Flatten()
[all …]
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/processor/
DBaseEntityParserTest.kt21 import androidx.room.testing.TestInvocation in <lambda>()
22 import androidx.room.testing.TestProcessor in <lambda>()
26 import com.google.testing.compile.CompileTester in <lambda>()
27 import com.google.testing.compile.JavaFileObjects in <lambda>()
28 import com.google.testing.compile.JavaSourcesSubjectFactory in <lambda>()

12345678910>>...25