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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc

Issue 2342523002: Forcibly clear worker ref counts on shutdown. (Closed)
Patch Set: more bundles Created 4 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
Index: chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc
diff --git a/chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc b/chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc
index ad81c3d11f82ccddc99c825d2dd991103a3ea307..884a09f51ea60dcfe969ed89be30f1f2c4b8829b 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc
+++ b/chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc
@@ -12,7 +12,7 @@
#include "chrome/browser/predictors/predictor_database.h"
#include "chrome/browser/predictors/resource_prefetch_predictor_tables.h"
#include "chrome/test/base/testing_profile.h"
-#include "content/public/test/test_browser_thread.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "net/base/request_priority.h"
#include "sql/statement.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -34,8 +34,7 @@ class ResourcePrefetchPredictorTablesTest : public testing::Test {
void TestDeleteSingleDataPoint();
void TestDeleteAllData();
- base::MessageLoop loop_;
- content::TestBrowserThread db_thread_;
+ content::TestBrowserThreadBundle thread_bundle_;
TestingProfile profile_;
std::unique_ptr<PredictorDatabase> db_;
scoped_refptr<ResourcePrefetchPredictorTables> tables_;
@@ -92,9 +91,7 @@ class ResourcePrefetchPredictorTablesReopenTest
};
ResourcePrefetchPredictorTablesTest::ResourcePrefetchPredictorTablesTest()
- : loop_(base::MessageLoop::TYPE_DEFAULT),
- db_thread_(content::BrowserThread::DB, &loop_),
- db_(new PredictorDatabase(&profile_)),
+ : db_(new PredictorDatabase(&profile_)),
tables_(db_->resource_prefetch_tables()) {
base::RunLoop().RunUntilIdle();
}

Powered by Google App Engine
This is Rietveld 408576698