Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: tests/TestConfigParsing.cpp

Issue 1857923002: Fix ParseConfigs_OutParam tests (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/TestConfigParsing.cpp
diff --git a/tests/TestConfigParsing.cpp b/tests/TestConfigParsing.cpp
index 25edec480ebe95faf482fd298f9efb8df19bddea..f718994b56788a2912c906bc56cdaaf05a31338e 100644
--- a/tests/TestConfigParsing.cpp
+++ b/tests/TestConfigParsing.cpp
@@ -111,37 +111,36 @@ DEF_TEST(ParseConfigs_DefaultConfigs, reporter) {
REPORTER_ASSERT(reporter, !configs[17]->asConfigGpu());
REPORTER_ASSERT(reporter, !configs[18]->asConfigGpu());
REPORTER_ASSERT(reporter, !configs[19]->asConfigGpu());
- REPORTER_ASSERT(reporter, !configs[20]->asConfigGpu());
- REPORTER_ASSERT(reporter, !configs[25]->asConfigGpu());
- REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorType()
+ REPORTER_ASSERT(reporter, !configs[24]->asConfigGpu());
+ REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorType()
== kRGBA_F16_SkColorType);
- REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getProfileType()
+ REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getProfileType()
== kLinear_SkColorProfileType);
- REPORTER_ASSERT(reporter, configs[27]->asConfigGpu()->getColorType()
+ REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorType()
== kN32_SkColorType);
- REPORTER_ASSERT(reporter, configs[27]->asConfigGpu()->getProfileType()
+ REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getProfileType()
== kSRGB_SkColorProfileType);
#if SK_ANGLE
#ifdef SK_BUILD_FOR_WIN
+ REPORTER_ASSERT(reporter, configs[20]->asConfigGpu());
+#else
+ REPORTER_ASSERT(reporter, !configs[20]->asConfigGpu());
+#endif
REPORTER_ASSERT(reporter, configs[21]->asConfigGpu());
#else
+ REPORTER_ASSERT(reporter, !configs[20]->asConfigGpu());
REPORTER_ASSERT(reporter, !configs[21]->asConfigGpu());
#endif
+#if SK_COMMAND_BUFFER
REPORTER_ASSERT(reporter, configs[22]->asConfigGpu());
#else
- REPORTER_ASSERT(reporter, !configs[21]->asConfigGpu());
REPORTER_ASSERT(reporter, !configs[22]->asConfigGpu());
#endif
-#if SK_COMMAND_BUFFER
+#if SK_MESA
REPORTER_ASSERT(reporter, configs[23]->asConfigGpu());
#else
REPORTER_ASSERT(reporter, !configs[23]->asConfigGpu());
#endif
-#if SK_MESA
- REPORTER_ASSERT(reporter, configs[24]->asConfigGpu());
-#else
- REPORTER_ASSERT(reporter, !configs[24]->asConfigGpu());
-#endif
#endif
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698