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

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

Issue 2322353002: [Merge-M53] 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 void AddPackage(const arc::mojom::ArcPackageInfo& package); 53 void AddPackage(const arc::mojom::ArcPackageInfo& package);
54 54
55 void RemovePackage(const arc::mojom::ArcPackageInfo& package); 55 void RemovePackage(const arc::mojom::ArcPackageInfo& package);
56 56
57 // The 0th item is sticky but not the followings. 57 // The 0th item is sticky but not the followings.
58 const std::vector<arc::mojom::AppInfo>& fake_apps() const { 58 const std::vector<arc::mojom::AppInfo>& fake_apps() const {
59 return fake_apps_; 59 return fake_apps_;
60 } 60 }
61 61
62 const std::vector<arc::mojom::AppInfo>& fake_default_apps() const {
63 return fake_default_apps_;
64 }
65
62 const std::vector<arc::mojom::ShortcutInfo>& fake_shortcuts() const { 66 const std::vector<arc::mojom::ShortcutInfo>& fake_shortcuts() const {
63 return fake_shortcuts_; 67 return fake_shortcuts_;
64 } 68 }
65 69
66 chromeos::FakeChromeUserManager* GetUserManager(); 70 chromeos::FakeChromeUserManager* GetUserManager();
67 71
68 arc::FakeArcBridgeService* bridge_service() { return bridge_service_.get(); } 72 arc::FakeArcBridgeService* bridge_service() { return bridge_service_.get(); }
69 73
70 arc::FakeAppInstance* app_instance() { return app_instance_.get(); } 74 arc::FakeAppInstance* app_instance() { return app_instance_.get(); }
71 75
72 ArcAppListPrefs* arc_app_list_prefs() { return arc_app_list_pref_; } 76 ArcAppListPrefs* arc_app_list_prefs() { return arc_app_list_pref_; }
73 77
74 arc::ArcAuthService* arc_auth_service() { return auth_service_.get(); } 78 arc::ArcAuthService* arc_auth_service() { return auth_service_.get(); }
75 79
76 private: 80 private:
77 void CreateUserAndLogin(); 81 void CreateUserAndLogin();
78 bool FindPackage(const arc::mojom::ArcPackageInfo& package); 82 bool FindPackage(const arc::mojom::ArcPackageInfo& package);
79 83
80 // Unowned pointer. 84 // Unowned pointer.
81 Profile* profile_ = nullptr; 85 Profile* profile_ = nullptr;
82 86
83 ArcAppListPrefs* arc_app_list_pref_ = nullptr; 87 ArcAppListPrefs* arc_app_list_pref_ = nullptr;
84 88
85 std::unique_ptr<arc::FakeArcBridgeService> bridge_service_; 89 std::unique_ptr<arc::FakeArcBridgeService> bridge_service_;
86 std::unique_ptr<arc::FakeAppInstance> app_instance_; 90 std::unique_ptr<arc::FakeAppInstance> app_instance_;
87 std::unique_ptr<arc::ArcAuthService> auth_service_; 91 std::unique_ptr<arc::ArcAuthService> auth_service_;
88 std::unique_ptr<chromeos::ScopedUserManagerEnabler> user_manager_enabler_; 92 std::unique_ptr<chromeos::ScopedUserManagerEnabler> user_manager_enabler_;
89 std::vector<arc::mojom::AppInfo> fake_apps_; 93 std::vector<arc::mojom::AppInfo> fake_apps_;
94 std::vector<arc::mojom::AppInfo> fake_default_apps_;
90 std::vector<arc::mojom::ArcPackageInfo> fake_packages_; 95 std::vector<arc::mojom::ArcPackageInfo> fake_packages_;
91 std::vector<arc::mojom::ShortcutInfo> fake_shortcuts_; 96 std::vector<arc::mojom::ShortcutInfo> fake_shortcuts_;
92 97
93 bool dbus_thread_manager_initialized_ = false; 98 bool dbus_thread_manager_initialized_ = false;
94 99
95 DISALLOW_COPY_AND_ASSIGN(ArcAppTest); 100 DISALLOW_COPY_AND_ASSIGN(ArcAppTest);
96 }; 101 };
97 102
98 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_TEST_H_ 103 #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