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

Unified Diff: components/test_runner/test_common.cc

Issue 2239563002: Remove remaining dependency on test_runner from components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 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
« no previous file with comments | « components/test_runner/test_common.h ('k') | components/webcrypto/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_common.cc
diff --git a/components/test_runner/test_common.cc b/components/test_runner/test_common.cc
index 4d295815b122a78bbf8a1fea92ed7568335c14f3..3639e7c75810a6c6e966730e52ff879a3c45805f 100644
--- a/components/test_runner/test_common.cc
+++ b/components/test_runner/test_common.cc
@@ -9,9 +9,8 @@
#include "base/lazy_instance.h"
#include "base/macros.h"
#include "base/rand_util.h"
-#include "third_party/WebKit/public/platform/Platform.h"
-#include "third_party/WebKit/public/web/WebKit.h"
#include "third_party/WebKit/public/web/WebNavigationPolicy.h"
+#include "url/gurl.h"
namespace test_runner {
@@ -25,22 +24,6 @@ const char file_test_prefix[] = "(file test):";
const char data_url_pattern[] = "data:";
const std::string::size_type data_url_pattern_size =
sizeof(data_url_pattern) - 1;
-
-// This mock is used to initialize blink.
-class MockBlinkPlatform : NON_EXPORTED_BASE(public blink::Platform) {
- public:
- MockBlinkPlatform() {
- blink::Platform::initialize(this);
- }
- ~MockBlinkPlatform() override {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockBlinkPlatform);
-};
-
-base::LazyInstance<MockBlinkPlatform>::Leaky g_mock_blink_platform =
- LAZY_INSTANCE_INITIALIZER;
-
const char* kIllegalString = "illegal value";
const char* kPolicyIgnore = "Ignore";
const char* kPolicyDownload = "download";
@@ -102,8 +85,4 @@ blink::WebString V8StringToWebString(v8::Local<v8::String> v8_str) {
return blink::WebString::fromUTF8(chars.get());
}
-void EnsureBlinkInitialized() {
- g_mock_blink_platform.Get();
-}
-
} // namespace test_runner
« no previous file with comments | « components/test_runner/test_common.h ('k') | components/webcrypto/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698