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

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

Issue 2478823002: predictors: ResourcePrefetchPredictorTables cleanup. (Closed)
Patch Set: Undo non-static. Created 4 years, 1 month 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"
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 646
647 db = tables_->DB(); 647 db = tables_->DB();
648 ASSERT_EQ(version, ResourcePrefetchPredictorTables::GetDatabaseVersion(db)); 648 ASSERT_EQ(version, ResourcePrefetchPredictorTables::GetDatabaseVersion(db));
649 649
650 PrefetchDataMap url_data, host_data; 650 PrefetchDataMap url_data, host_data;
651 RedirectDataMap url_redirect_data, host_redirect_data; 651 RedirectDataMap url_redirect_data, host_redirect_data;
652 tables_->GetAllData(&url_data, &host_data, &url_redirect_data, 652 tables_->GetAllData(&url_data, &host_data, &url_redirect_data,
653 &host_redirect_data); 653 &host_redirect_data);
654 EXPECT_TRUE(url_data.empty()); 654 EXPECT_TRUE(url_data.empty());
655 EXPECT_TRUE(host_data.empty()); 655 EXPECT_TRUE(host_data.empty());
656 EXPECT_TRUE(url_redirect_data.empty());
657 EXPECT_TRUE(host_redirect_data.empty());
656 } 658 }
657 659
658 TEST_F(ResourcePrefetchPredictorTablesReopenTest, GetAllData) { 660 TEST_F(ResourcePrefetchPredictorTablesReopenTest, GetAllData) {
659 TestGetAllData(); 661 TestGetAllData();
660 } 662 }
661 663
662 TEST_F(ResourcePrefetchPredictorTablesReopenTest, UpdateData) { 664 TEST_F(ResourcePrefetchPredictorTablesReopenTest, UpdateData) {
663 TestUpdateData(); 665 TestUpdateData();
664 } 666 }
665 667
666 TEST_F(ResourcePrefetchPredictorTablesReopenTest, DeleteData) { 668 TEST_F(ResourcePrefetchPredictorTablesReopenTest, DeleteData) {
667 TestDeleteData(); 669 TestDeleteData();
668 } 670 }
669 671
670 TEST_F(ResourcePrefetchPredictorTablesReopenTest, DeleteSingleDataPoint) { 672 TEST_F(ResourcePrefetchPredictorTablesReopenTest, DeleteSingleDataPoint) {
671 TestDeleteSingleDataPoint(); 673 TestDeleteSingleDataPoint();
672 } 674 }
673 675
674 TEST_F(ResourcePrefetchPredictorTablesReopenTest, DeleteAllData) { 676 TEST_F(ResourcePrefetchPredictorTablesReopenTest, DeleteAllData) {
675 TestDeleteAllData(); 677 TestDeleteAllData();
676 } 678 }
677 679
678 } // namespace predictors 680 } // namespace predictors
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698