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

Unified Diff: content/browser/in_process_webkit/webkit_context_unittest.cc

Issue 8400060: Switch content tests to use BrowserThreadImpl directly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to lkgr Created 9 years, 2 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/browser/in_process_webkit/webkit_context_unittest.cc
diff --git a/content/browser/in_process_webkit/webkit_context_unittest.cc b/content/browser/in_process_webkit/webkit_context_unittest.cc
index f03cbef4220badd98705b0b15c9c087de53d01e4..affe29fd5edcb35d65fb9ae0fc457838480fd8f4 100644
--- a/content/browser/in_process_webkit/webkit_context_unittest.cc
+++ b/content/browser/in_process_webkit/webkit_context_unittest.cc
@@ -2,12 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "content/browser/browser_thread_impl.h"
#include "content/browser/in_process_webkit/dom_storage_context.h"
#include "content/browser/in_process_webkit/webkit_context.h"
#include "content/test/test_browser_context.h"
-#include "content/test/test_browser_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
+using content::BrowserThreadImpl;
+
class MockDOMStorageContext : public DOMStorageContext {
public:
MockDOMStorageContext(WebKitContext* webkit_context,
@@ -47,8 +49,7 @@ TEST(WebKitContextTest, PurgeMemory) {
// Start up a WebKit thread for the WebKitContext to call the
// DOMStorageContext on.
MessageLoop message_loop(MessageLoop::TYPE_DEFAULT);
- content::TestBrowserThread webkit_thread(BrowserThread::WEBKIT,
- &message_loop);
+ BrowserThreadImpl webkit_thread(BrowserThread::WEBKIT, &message_loop);
{
// Create the contexts.
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_quota_client_unittest.cc ('k') | content/browser/plugin_loader_posix_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698