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

Unified Diff: chrome/browser/browsing_data_indexed_db_helper_browsertest.cc

Issue 7480041: Adding session-only localStorage. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Adding tests. Created 9 years, 5 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: chrome/browser/browsing_data_indexed_db_helper_browsertest.cc
diff --git a/chrome/browser/browsing_data_indexed_db_helper_browsertest.cc b/chrome/browser/browsing_data_indexed_db_helper_browsertest.cc
index 7cc5a30390576443e441b7fee6412b0ee93a992d..ef1c999d381478965fa090e4c74a7599e414cde4 100644
--- a/chrome/browser/browsing_data_indexed_db_helper_browsertest.cc
+++ b/chrome/browser/browsing_data_indexed_db_helper_browsertest.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/browsing_data_indexed_db_helper.h"
#include "chrome/test/in_process_browser_test.h"
#include "chrome/test/testing_profile.h"
+#include "content/browser/mock_resource_context.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
@@ -21,6 +22,14 @@ typedef BrowsingDataHelperCallback<BrowsingDataIndexedDBHelper::IndexedDBInfo>
TestCompletionCallback;
class BrowsingDataIndexedDBHelperTest : public InProcessBrowserTest {
+ public:
+ virtual void SetUpOnMainThread() {
+ // Make sure TestURLRequestContext gets initliazed early enough (it needs to
+ // be constructed in the UI thread). Normally Profile's URLRequestContext is
+ // initialized early enough, but the same is not true for the
+ // TestingProfile.
+ content::MockResourceContext::GetInstance();
+ }
protected:
TestingProfile testing_profile_;
};

Powered by Google App Engine
This is Rietveld 408576698