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

Side by Side Diff: components/suggestions/suggestions_service_unittest.cc

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 "components/suggestions/suggestions_service.h" 5 #include "components/suggestions/suggestions_service.h"
6 6
7 #include <map> 7 #include <map>
8 #include <sstream> 8 #include <sstream>
9 #include <string> 9 #include <string>
10 10
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 protected: 158 protected:
159 SuggestionsServiceTest() 159 SuggestionsServiceTest()
160 : suggestions_data_check_count_(0), 160 : suggestions_data_check_count_(0),
161 suggestions_empty_data_count_(0), 161 suggestions_empty_data_count_(0),
162 factory_(NULL, base::Bind(&CreateURLFetcher)), 162 factory_(NULL, base::Bind(&CreateURLFetcher)),
163 mock_suggestions_store_(NULL), 163 mock_suggestions_store_(NULL),
164 mock_thumbnail_manager_(NULL) {} 164 mock_thumbnail_manager_(NULL) {}
165 165
166 virtual ~SuggestionsServiceTest() {} 166 virtual ~SuggestionsServiceTest() {}
167 167
168 virtual void SetUp() OVERRIDE { 168 virtual void SetUp() override {
169 request_context_ = new net::TestURLRequestContextGetter( 169 request_context_ = new net::TestURLRequestContextGetter(
170 io_message_loop_.message_loop_proxy()); 170 io_message_loop_.message_loop_proxy());
171 } 171 }
172 172
173 // Enables the "ChromeSuggestions.Group1" field trial. 173 // Enables the "ChromeSuggestions.Group1" field trial.
174 void EnableFieldTrial(const std::string& url, 174 void EnableFieldTrial(const std::string& url,
175 const std::string& common_params, 175 const std::string& common_params,
176 const std::string& blacklist_path, 176 const std::string& blacklist_path,
177 const std::string& blacklist_url_param, 177 const std::string& blacklist_url_param,
178 bool control_group) { 178 bool control_group) {
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 scoped_ptr<SuggestionsService> suggestions_service( 589 scoped_ptr<SuggestionsService> suggestions_service(
590 CreateSuggestionsServiceWithMocks()); 590 CreateSuggestionsServiceWithMocks());
591 SuggestionsProfile suggestions = 591 SuggestionsProfile suggestions =
592 CreateSuggestionsProfileWithExpiryTimestamps(); 592 CreateSuggestionsProfileWithExpiryTimestamps();
593 suggestions_service->SetDefaultExpiryTimestamp(&suggestions, 593 suggestions_service->SetDefaultExpiryTimestamp(&suggestions,
594 kTestDefaultExpiry); 594 kTestDefaultExpiry);
595 EXPECT_EQ(kTestSetExpiry, suggestions.suggestions(0).expiry_ts()); 595 EXPECT_EQ(kTestSetExpiry, suggestions.suggestions(0).expiry_ts());
596 EXPECT_EQ(kTestDefaultExpiry, suggestions.suggestions(1).expiry_ts()); 596 EXPECT_EQ(kTestDefaultExpiry, suggestions.suggestions(1).expiry_ts());
597 } 597 }
598 } // namespace suggestions 598 } // namespace suggestions
OLDNEW
« no previous file with comments | « components/suggestions/suggestions_service.h ('k') | components/suggestions/suggestions_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698