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

Side by Side Diff: chrome/browser/ui/app_list/arc/arc_app_test.h

Issue 2322683003: [Merge-M54] arc: Add support of default and OEM apps. (Closed)
Patch Set: Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_TEST_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_TEST_H_
6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_TEST_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_TEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 void AddPackage(const arc::mojom::ArcPackageInfo& package); 57 void AddPackage(const arc::mojom::ArcPackageInfo& package);
58 58
59 void RemovePackage(const arc::mojom::ArcPackageInfo& package); 59 void RemovePackage(const arc::mojom::ArcPackageInfo& package);
60 60
61 // The 0th item is sticky but not the followings. 61 // The 0th item is sticky but not the followings.
62 const std::vector<arc::mojom::AppInfo>& fake_apps() const { 62 const std::vector<arc::mojom::AppInfo>& fake_apps() const {
63 return fake_apps_; 63 return fake_apps_;
64 } 64 }
65 65
66 const std::vector<arc::mojom::AppInfo>& fake_default_apps() const {
67 return fake_default_apps_;
68 }
69
66 const std::vector<arc::mojom::ShortcutInfo>& fake_shortcuts() const { 70 const std::vector<arc::mojom::ShortcutInfo>& fake_shortcuts() const {
67 return fake_shortcuts_; 71 return fake_shortcuts_;
68 } 72 }
69 73
70 chromeos::FakeChromeUserManager* GetUserManager(); 74 chromeos::FakeChromeUserManager* GetUserManager();
71 75
72 arc::FakeArcBridgeService* bridge_service() { return bridge_service_.get(); } 76 arc::FakeArcBridgeService* bridge_service() { return bridge_service_.get(); }
73 77
74 arc::FakeAppInstance* app_instance() { return app_instance_.get(); } 78 arc::FakeAppInstance* app_instance() { return app_instance_.get(); }
75 79
76 ArcAppListPrefs* arc_app_list_prefs() { return arc_app_list_pref_; } 80 ArcAppListPrefs* arc_app_list_prefs() { return arc_app_list_pref_; }
77 81
78 arc::ArcAuthService* arc_auth_service() { return auth_service_.get(); } 82 arc::ArcAuthService* arc_auth_service() { return auth_service_.get(); }
79 83
80 private: 84 private:
81 const user_manager::User* CreateUserAndLogin(); 85 const user_manager::User* CreateUserAndLogin();
82 bool FindPackage(const arc::mojom::ArcPackageInfo& package); 86 bool FindPackage(const arc::mojom::ArcPackageInfo& package);
83 87
84 // Unowned pointer. 88 // Unowned pointer.
85 Profile* profile_ = nullptr; 89 Profile* profile_ = nullptr;
86 90
87 ArcAppListPrefs* arc_app_list_pref_ = nullptr; 91 ArcAppListPrefs* arc_app_list_pref_ = nullptr;
88 92
89 std::unique_ptr<arc::FakeArcBridgeService> bridge_service_; 93 std::unique_ptr<arc::FakeArcBridgeService> bridge_service_;
90 std::unique_ptr<arc::FakeAppInstance> app_instance_; 94 std::unique_ptr<arc::FakeAppInstance> app_instance_;
91 std::unique_ptr<arc::ArcAuthService> auth_service_; 95 std::unique_ptr<arc::ArcAuthService> auth_service_;
92 std::unique_ptr<chromeos::ScopedUserManagerEnabler> user_manager_enabler_; 96 std::unique_ptr<chromeos::ScopedUserManagerEnabler> user_manager_enabler_;
93 std::vector<arc::mojom::AppInfo> fake_apps_; 97 std::vector<arc::mojom::AppInfo> fake_apps_;
98 std::vector<arc::mojom::AppInfo> fake_default_apps_;
94 std::vector<arc::mojom::ArcPackageInfo> fake_packages_; 99 std::vector<arc::mojom::ArcPackageInfo> fake_packages_;
95 std::vector<arc::mojom::ShortcutInfo> fake_shortcuts_; 100 std::vector<arc::mojom::ShortcutInfo> fake_shortcuts_;
96 101
97 bool dbus_thread_manager_initialized_ = false; 102 bool dbus_thread_manager_initialized_ = false;
98 103
99 DISALLOW_COPY_AND_ASSIGN(ArcAppTest); 104 DISALLOW_COPY_AND_ASSIGN(ArcAppTest);
100 }; 105 };
101 106
102 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_TEST_H_ 107 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc ('k') | chrome/browser/ui/app_list/arc/arc_app_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698