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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp

Issue 1568433005: Platform WebUnitTestSupport onion soup: remove more indirect methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp b/third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp
index 10824940aad9179c0359a15481b7e693c43902bb..6a6465d4434f02835c55d78bb2dd13ab4a8a36b4 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp
@@ -8,8 +8,6 @@
#include "platform/image-decoders/ImageDecoder.h"
#include "platform/image-decoders/ImageFrame.h"
#include "platform/testing/UnitTestHelpers.h"
-#include "public/platform/Platform.h"
-#include "public/platform/WebUnitTestSupport.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "wtf/OwnPtr.h"
#include "wtf/StringHasher.h"
@@ -20,7 +18,7 @@ PassRefPtr<SharedBuffer> readFile(const char* fileName)
{
String filePath = testing::blinkRootDir();
filePath.append(fileName);
- return Platform::current()->unitTestSupport()->readFromFile(filePath);
+ return testing::readFromFile(filePath);
}
PassRefPtr<SharedBuffer> readFile(const char* dir, const char* fileName)
@@ -31,7 +29,7 @@ PassRefPtr<SharedBuffer> readFile(const char* dir, const char* fileName)
filePath.append("/");
filePath.append(fileName);
- return Platform::current()->unitTestSupport()->readFromFile(filePath);
+ return testing::readFromFile(filePath);
}
unsigned hashBitmap(const SkBitmap& bitmap)
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp ('k') | third_party/WebKit/Source/platform/testing/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698