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

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

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 <iostream> 5 #include <iostream>
6 #include "base/memory/ref_counted.h" 6 #include "base/memory/ref_counted.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 MOCK_METHOD0(DeleteAllData, void()); 66 MOCK_METHOD0(DeleteAllData, void());
67 67
68 protected: 68 protected:
69 ~MockResourcePrefetchPredictorTables() { } 69 ~MockResourcePrefetchPredictorTables() { }
70 }; 70 };
71 71
72 class ResourcePrefetchPredictorTest : public testing::Test { 72 class ResourcePrefetchPredictorTest : public testing::Test {
73 public: 73 public:
74 ResourcePrefetchPredictorTest(); 74 ResourcePrefetchPredictorTest();
75 virtual ~ResourcePrefetchPredictorTest(); 75 virtual ~ResourcePrefetchPredictorTest();
76 virtual void SetUp() OVERRIDE; 76 virtual void SetUp() override;
77 virtual void TearDown() OVERRIDE; 77 virtual void TearDown() override;
78 78
79 protected: 79 protected:
80 void AddUrlToHistory(const std::string& url, int visit_count) { 80 void AddUrlToHistory(const std::string& url, int visit_count) {
81 HistoryServiceFactory::GetForProfile(profile_.get(), 81 HistoryServiceFactory::GetForProfile(profile_.get(),
82 Profile::EXPLICIT_ACCESS)-> 82 Profile::EXPLICIT_ACCESS)->
83 AddPageWithDetails( 83 AddPageWithDetails(
84 GURL(url), 84 GURL(url),
85 base::string16(), 85 base::string16(),
86 visit_count, 86 visit_count,
87 0, 87 0,
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 predictor_->inflight_navigations_[main_frame1.navigation_id]->at(0))); 916 predictor_->inflight_navigations_[main_frame1.navigation_id]->at(0)));
917 EXPECT_TRUE(URLRequestSummaryAreEqual( 917 EXPECT_TRUE(URLRequestSummaryAreEqual(
918 resource2, 918 resource2,
919 predictor_->inflight_navigations_[main_frame1.navigation_id]->at(1))); 919 predictor_->inflight_navigations_[main_frame1.navigation_id]->at(1)));
920 EXPECT_TRUE(URLRequestSummaryAreEqual( 920 EXPECT_TRUE(URLRequestSummaryAreEqual(
921 resource3, 921 resource3,
922 predictor_->inflight_navigations_[main_frame1.navigation_id]->at(2))); 922 predictor_->inflight_navigations_[main_frame1.navigation_id]->at(2)));
923 } 923 }
924 924
925 } // namespace predictors 925 } // namespace predictors
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698