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

Unified Diff: Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp

Issue 1184673003: Fix unit test style in Source/platform/, part 2. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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: Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp
diff --git a/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp b/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp
index 35bcc98daaaff489829adbf599ac7f1e8363f6e1..2e7c972b27dcb260d9a65d40943b984b3da49cee 100644
--- a/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp
+++ b/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp
@@ -29,7 +29,6 @@
*/
#include "config.h"
-
#include "platform/image-decoders/jpeg/JPEGImageDecoder.h"
#include "platform/SharedBuffer.h"
@@ -40,10 +39,9 @@
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/StringHasher.h"
-
#include <gtest/gtest.h>
-using namespace blink;
+namespace blink {
static const size_t LargeEnoughSize = 1000 * 1000;
@@ -62,7 +60,7 @@ PassOwnPtr<JPEGImageDecoder> createDecoder(size_t maxDecodedBytes)
return adoptPtr(new JPEGImageDecoder(ImageSource::AlphaNotPremultiplied, ImageSource::GammaAndColorProfileApplied, maxDecodedBytes));
}
-} // namespace
+} // anonymous namespace
void downsample(size_t maxDecodedBytes, unsigned* outputWidth, unsigned* outputHeight, const char* imageFilePath)
{
@@ -236,3 +234,5 @@ TEST(JPEGImageDecoderTest, yuv)
ASSERT_TRUE(decoder->isSizeAvailable());
ASSERT_FALSE(decoder->canDecodeToYUV());
}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698