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

Unified Diff: content/test/test_webkit_platform_support.cc

Issue 456413002: Move the user agent styles sheets to blink_resources.grd (Part 2) with Unit test support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: content/test/test_webkit_platform_support.cc
diff --git a/content/test/test_webkit_platform_support.cc b/content/test/test_webkit_platform_support.cc
index c0e3673a6d3e26b11b58e74c6620e731bef23373..c943446e888ea7f9ad19c9b0187db413eedcbc77 100644
--- a/content/test/test_webkit_platform_support.cc
+++ b/content/test/test_webkit_platform_support.cc
@@ -12,6 +12,7 @@
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
#include "content/public/common/content_switches.h"
+#include "content/public/test/test_content_client_initializer.h"
#include "content/test/mock_webclipboard_impl.h"
#include "content/test/web_gesture_curve_mock.h"
#include "content/test/web_layer_tree_view_impl_for_testing.h"
@@ -54,6 +55,8 @@ TestWebKitPlatformSupport::TestWebKitPlatformSupport() {
new base::StatsTable(base::StatsTable::TableIdentifier(), 20, 200));
base::StatsTable::set_current(stats_table_.get());
+ content_initializer_.reset(new content::TestContentClientInitializer());
+
blink::initialize(this);
blink::mainThreadIsolate()->SetCounterFunction(
base::StatsTable::FindLocation);
@@ -163,7 +166,7 @@ blink::WebData TestWebKitPlatformSupport::loadResource(const char* name) {
"\x82";
return blink::WebData(red_square, arraysize(red_square));
}
- return blink::WebData();
+ return BlinkPlatformImpl::loadResource(name);
}
blink::WebString TestWebKitPlatformSupport::queryLocalizedString(
« content/test/test_webkit_platform_support.h ('K') | « content/test/test_webkit_platform_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698