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

Side by Side Diff: chrome/browser/ui/app_list/model_pref_updater_unittest.cc

Issue 681823004: 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 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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "chrome/browser/ui/app_list/app_list_prefs.h" 6 #include "chrome/browser/ui/app_list/app_list_prefs.h"
7 #include "chrome/browser/ui/app_list/extension_app_item.h" 7 #include "chrome/browser/ui/app_list/extension_app_item.h"
8 #include "chrome/browser/ui/app_list/model_pref_updater.h" 8 #include "chrome/browser/ui/app_list/model_pref_updater.h"
9 #include "components/pref_registry/testing_pref_service_syncable.h" 9 #include "components/pref_registry/testing_pref_service_syncable.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 13 matching lines...) Expand all
24 return ExtensionAppItem::kItemType; 24 return ExtensionAppItem::kItemType;
25 } 25 }
26 26
27 private: 27 private:
28 DISALLOW_COPY_AND_ASSIGN(TestExtensionAppItem); 28 DISALLOW_COPY_AND_ASSIGN(TestExtensionAppItem);
29 }; 29 };
30 30
31 class ModelPrefUpdaterTest : public testing::Test { 31 class ModelPrefUpdaterTest : public testing::Test {
32 public: 32 public:
33 ModelPrefUpdaterTest() {} 33 ModelPrefUpdaterTest() {}
34 virtual ~ModelPrefUpdaterTest() {} 34 ~ModelPrefUpdaterTest() override {}
35 35
36 virtual void SetUp() override { 36 void SetUp() override {
37 AppListPrefs::RegisterProfilePrefs(pref_service_.registry()); 37 AppListPrefs::RegisterProfilePrefs(pref_service_.registry());
38 prefs_.reset(AppListPrefs::Create(&pref_service_)); 38 prefs_.reset(AppListPrefs::Create(&pref_service_));
39 model_.reset(new AppListTestModel()); 39 model_.reset(new AppListTestModel());
40 pref_updater_.reset(new ModelPrefUpdater(prefs_.get(), model_.get())); 40 pref_updater_.reset(new ModelPrefUpdater(prefs_.get(), model_.get()));
41 } 41 }
42 42
43 AppListTestModel* model() { return model_.get(); } 43 AppListTestModel* model() { return model_.get(); }
44 44
45 AppListPrefs* prefs() { return prefs_.get(); } 45 AppListPrefs* prefs() { return prefs_.get(); }
46 46
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 EXPECT_EQ(folder->id(), item->folder_id()); 93 EXPECT_EQ(folder->id(), item->folder_id());
94 94
95 prefs()->GetAllAppListInfos(&infos); 95 prefs()->GetAllAppListInfos(&infos);
96 EXPECT_EQ(2u, infos.size()); 96 EXPECT_EQ(2u, infos.size());
97 EXPECT_TRUE(AppListItemMatchesPrefs(folder)); 97 EXPECT_TRUE(AppListItemMatchesPrefs(folder));
98 EXPECT_TRUE(AppListItemMatchesPrefs(item)); 98 EXPECT_TRUE(AppListItemMatchesPrefs(item));
99 } 99 }
100 100
101 } // namespace test 101 } // namespace test
102 } // namespace app_list 102 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698