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

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

Issue 9419033: Move creation of BrowserContext objects that live in content to content, instead of depending on th… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix memory leaks in tests Created 8 years, 10 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/indexed_db_quota_client_unittest.cc
===================================================================
--- content/browser/in_process_webkit/indexed_db_quota_client_unittest.cc (revision 122721)
+++ content/browser/in_process_webkit/indexed_db_quota_client_unittest.cc (working copy)
@@ -18,6 +18,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/database/database_util.h"
+using content::BrowserContext;
using content::BrowserThread;
// Declared to shorten the line lengths.
@@ -42,9 +43,11 @@
weak_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
message_loop_(MessageLoop::TYPE_IO),
webkit_thread_(BrowserThread::WEBKIT_DEPRECATED, &message_loop_),
+ file_thread_(BrowserThread::FILE_USER_BLOCKING, &message_loop_),
io_thread_(BrowserThread::IO, &message_loop_) {
TestBrowserContext browser_context;
- idb_context_ = browser_context.GetWebKitContext()->indexed_db_context();
+ idb_context_ = BrowserContext::GetWebKitContext(&browser_context)->
+ indexed_db_context();
setup_temp_dir();
}
void setup_temp_dir() {
@@ -158,6 +161,7 @@
base::WeakPtrFactory<IndexedDBQuotaClientTest> weak_factory_;
MessageLoop message_loop_;
BrowserThreadImpl webkit_thread_;
+ BrowserThreadImpl file_thread_;
BrowserThreadImpl io_thread_;
quota::QuotaStatusCode delete_status_;
};
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_browsertest.cc ('k') | content/browser/in_process_webkit/webkit_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698