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

Side by Side Diff: chrome/browser/autocomplete/shortcuts_provider_unittest.cc

Issue 684613002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/autocomplete/shortcuts_provider.h" 5 #include "chrome/browser/autocomplete/shortcuts_provider.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <functional> 10 #include <functional>
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 void operator()(const ExpectedURLAndAllowedToBeDefault& expected); 255 void operator()(const ExpectedURLAndAllowedToBeDefault& expected);
256 std::set<ExpectedURLAndAllowedToBeDefault> Leftovers() const { 256 std::set<ExpectedURLAndAllowedToBeDefault> Leftovers() const {
257 return matches_; 257 return matches_;
258 } 258 }
259 259
260 private: 260 private:
261 std::set<ExpectedURLAndAllowedToBeDefault> matches_; 261 std::set<ExpectedURLAndAllowedToBeDefault> matches_;
262 }; 262 };
263 263
264 virtual void SetUp(); 264 void SetUp() override;
265 virtual void TearDown(); 265 void TearDown() override;
266 266
267 // Fills test data into the provider. 267 // Fills test data into the provider.
268 void FillData(TestShortcutInfo* db, size_t db_size); 268 void FillData(TestShortcutInfo* db, size_t db_size);
269 269
270 // Runs an autocomplete query on |text| with the provided 270 // Runs an autocomplete query on |text| with the provided
271 // |prevent_inline_autocomplete| setting and checks to see that the returned 271 // |prevent_inline_autocomplete| setting and checks to see that the returned
272 // results' destination URLs match those provided. |expected_urls| does not 272 // results' destination URLs match those provided. |expected_urls| does not
273 // need to be in sorted order, but |expected_top_result| should be the top 273 // need to be in sorted order, but |expected_top_result| should be the top
274 // match, and it should have inline autocompletion 274 // match, and it should have inline autocompletion
275 // |top_result_inline_autocompletion|. 275 // |top_result_inline_autocompletion|.
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 extension.get(), extensions::UnloadedExtensionInfo::REASON_UNINSTALL); 845 extension.get(), extensions::UnloadedExtensionInfo::REASON_UNINSTALL);
846 content::NotificationService::current()->Notify( 846 content::NotificationService::current()->Notify(
847 extensions::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED, 847 extensions::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED,
848 content::Source<Profile>(&profile_), 848 content::Source<Profile>(&profile_),
849 content::Details<extensions::UnloadedExtensionInfo>(&details)); 849 content::Details<extensions::UnloadedExtensionInfo>(&details));
850 850
851 // Now the URL should have disappeared. 851 // Now the URL should have disappeared.
852 RunTest(text, false, ExpectedURLs(), std::string(), base::string16()); 852 RunTest(text, false, ExpectedURLs(), std::string(), base::string16());
853 } 853 }
854 #endif 854 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698