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

Side by Side Diff: chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc

Issue 2896713003: Create LoadingDataCollector class and have observers rely on it instead of ResourcePrefetchPredictor (Closed)
Patch Set: Rebase Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <memory> 5 #include <memory>
6 #include <set> 6 #include <set>
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "chrome/browser/predictors/loading_test_util.h"
13 #include "chrome/browser/predictors/predictor_database.h" 14 #include "chrome/browser/predictors/predictor_database.h"
14 #include "chrome/browser/predictors/resource_prefetch_predictor_tables.h" 15 #include "chrome/browser/predictors/resource_prefetch_predictor_tables.h"
15 #include "chrome/browser/predictors/resource_prefetch_predictor_test_util.h"
16 #include "chrome/test/base/testing_profile.h" 16 #include "chrome/test/base/testing_profile.h"
17 #include "content/public/test/test_browser_thread_bundle.h" 17 #include "content/public/test/test_browser_thread_bundle.h"
18 #include "net/base/request_priority.h" 18 #include "net/base/request_priority.h"
19 #include "sql/statement.h" 19 #include "sql/statement.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 21
22 namespace predictors { 22 namespace predictors {
23 23
24 class ResourcePrefetchPredictorTablesTest : public testing::Test { 24 class ResourcePrefetchPredictorTablesTest : public testing::Test {
25 public: 25 public:
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 987
988 TEST_F(ResourcePrefetchPredictorTablesReopenTest, DeleteData) { 988 TEST_F(ResourcePrefetchPredictorTablesReopenTest, DeleteData) {
989 TestDeleteData(); 989 TestDeleteData();
990 } 990 }
991 991
992 TEST_F(ResourcePrefetchPredictorTablesReopenTest, DeleteAllData) { 992 TEST_F(ResourcePrefetchPredictorTablesReopenTest, DeleteAllData) {
993 TestDeleteAllData(); 993 TestDeleteAllData();
994 } 994 }
995 995
996 } // namespace predictors 996 } // namespace predictors
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698