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

Unified Diff: ui/app_list/search/mixer_unittest.cc

Issue 667923002: Standardize usage of virtual/override/final in ui/ (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/search/history.h ('k') | ui/app_list/test/app_list_test_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search/mixer_unittest.cc
diff --git a/ui/app_list/search/mixer_unittest.cc b/ui/app_list/search/mixer_unittest.cc
index 542c98dc4ca4d841e259960c3c182f93872f3977..70163a2cd82a5913381de3cff01e8cbd62ed3ab3 100644
--- a/ui/app_list/search/mixer_unittest.cc
+++ b/ui/app_list/search/mixer_unittest.cc
@@ -26,12 +26,12 @@ class TestSearchResult : public SearchResult {
set_title(base::UTF8ToUTF16(id));
set_relevance(relevance);
}
- virtual ~TestSearchResult() {}
+ ~TestSearchResult() override {}
// SearchResult overrides:
- virtual void Open(int event_flags) override {}
- virtual void InvokeAction(int action_index, int event_flags) override {}
- virtual scoped_ptr<SearchResult> Duplicate() override {
+ void Open(int event_flags) override {}
+ void InvokeAction(int action_index, int event_flags) override {}
+ scoped_ptr<SearchResult> Duplicate() override {
return scoped_ptr<SearchResult>(new TestSearchResult(id(), relevance()));
}
@@ -55,10 +55,10 @@ class TestSearchProvider : public SearchProvider {
public:
explicit TestSearchProvider(const std::string& prefix)
: prefix_(prefix), count_(0) {}
- virtual ~TestSearchProvider() {}
+ ~TestSearchProvider() override {}
// SearchProvider overrides:
- virtual void Start(const base::string16& query) override {
+ void Start(const base::string16& query) override {
ClearResults();
for (size_t i = 0; i < count_; ++i) {
const std::string id =
@@ -67,7 +67,7 @@ class TestSearchProvider : public SearchProvider {
Add(scoped_ptr<SearchResult>(new TestSearchResult(id, relevance)).Pass());
}
}
- virtual void Stop() override {}
+ void Stop() override {}
void set_prefix(const std::string& prefix) { prefix_ = prefix; }
void set_count(size_t count) { count_ = count; }
« no previous file with comments | « ui/app_list/search/history.h ('k') | ui/app_list/test/app_list_test_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698