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

Unified Diff: content/test/blink_test_environment.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: Patch after rebased! Created 6 years, 3 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
« no previous file with comments | « content/test/BUILD.gn ('k') | content/test/test_content_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/blink_test_environment.cc
diff --git a/content/test/blink_test_environment.cc b/content/test/blink_test_environment.cc
index db556309f6a36eb6b1486b884da19e9831d38a19..0c32a91c15beb4f159283858dffa1a217ece3f17 100644
--- a/content/test/blink_test_environment.cc
+++ b/content/test/blink_test_environment.cc
@@ -12,6 +12,7 @@
#include "base/strings/string_tokenizer.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/user_agent.h"
+#include "content/public/test/test_content_client_initializer.h"
#include "content/test/test_webkit_platform_support.h"
#include "third_party/WebKit/public/web/WebCache.h"
#include "third_party/WebKit/public/web/WebKit.h"
@@ -63,6 +64,7 @@ class TestEnvironment {
// TestWebKitPlatformSupport must be instantiated after MessageLoopType.
webkit_platform_support_.reset(new TestWebKitPlatformSupport);
+ content_initializer_.reset(new content::TestContentClientInitializer());
}
~TestEnvironment() {
@@ -75,6 +77,7 @@ class TestEnvironment {
private:
scoped_ptr<MessageLoopType> main_message_loop_;
scoped_ptr<TestWebKitPlatformSupport> webkit_platform_support_;
+ scoped_ptr<TestContentClientInitializer> content_initializer_;
};
TestEnvironment* test_environment;
« no previous file with comments | « content/test/BUILD.gn ('k') | content/test/test_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698