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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.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/core/paint/PaintPropertyTreeBuilderTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
index 2fce3a6e324ee47ef30af2e1cebbbdc79513f89f..2b88e9b29d9dd9802f2dc226e360dfed1db7f26a 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
@@ -9,8 +9,6 @@
#include "platform/graphics/paint/TransformPaintPropertyNode.h"
#include "platform/testing/UnitTestHelpers.h"
#include "platform/text/TextStream.h"
-#include "public/platform/Platform.h"
-#include "public/platform/WebUnitTestSupport.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "wtf/HashMap.h"
#include "wtf/Vector.h"
@@ -27,8 +25,8 @@ public:
String fullPath = testing::blinkRootDir();
fullPath.append("/Source/core/paint/test_data/");
fullPath.append(fileName);
- WebData inputBuffer = Platform::current()->unitTestSupport()->readFromFile(fullPath);
- setBodyInnerHTML(String(inputBuffer.data(), inputBuffer.size()));
+ RefPtr<SharedBuffer> inputBuffer = testing::readFromFile(fullPath);
+ setBodyInnerHTML(String(inputBuffer->data(), inputBuffer->size()));
}
private:
« no previous file with comments | « content/test/test_blink_web_unit_test_support.cc ('k') | third_party/WebKit/Source/platform/fonts/TestFontSelector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698