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

Unified Diff: tests/ImageDecodingTest.cpp

Issue 132403008: Remove unnamed namespace usage from tests/ (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 11 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
Index: tests/ImageDecodingTest.cpp
diff --git a/tests/ImageDecodingTest.cpp b/tests/ImageDecodingTest.cpp
index becb8c9dd6183708aecc5e90e4c4b949f6a0ce53..28409f46b6fe1d183aef47e8d35f87b74e4f64c1 100644
--- a/tests/ImageDecodingTest.cpp
+++ b/tests/ImageDecodingTest.cpp
@@ -241,12 +241,10 @@ DEF_TEST(ImageDecoding, reporter) {
#endif
}
-////////////////////////////////////////////////////////////////////////////////
-namespace {
// expected output for 8x8 bitmap
-const int kExpectedWidth = 8;
-const int kExpectedHeight = 8;
-const SkColor kExpectedPixels[] = {
+static const int kExpectedWidth = 8;
+static const int kExpectedHeight = 8;
+static const SkColor kExpectedPixels[] = {
0xffbba570, 0xff395f5d, 0xffe25c39, 0xff197666,
0xff3cba27, 0xffdefcb0, 0xffc13874, 0xfffa0093,
0xffbda60e, 0xffc01db6, 0xff2bd688, 0xff9362d4,
@@ -266,7 +264,6 @@ const SkColor kExpectedPixels[] = {
};
SK_COMPILE_ASSERT((kExpectedWidth * kExpectedHeight)
== SK_ARRAY_COUNT(kExpectedPixels), array_size_mismatch);
-} // namespace
DEF_TEST(WebP, reporter) {
const unsigned char encodedWebP[] = {
@@ -583,4 +580,3 @@ DEF_TEST(ImageDecoderOptions, reporter) {
}
}
}
-////////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698