| OLD | NEW |
| 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> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "components/arc/common/app.mojom.h" | 13 #include "components/arc/common/app.mojom.h" |
| 14 | 14 |
| 15 namespace arc { | 15 namespace arc { |
| 16 namespace mojom { | 16 namespace mojom { |
| 17 class AppInfo; | 17 class AppInfo; |
| 18 class ArcPackageInfo; | 18 class ArcPackageInfo; |
| 19 } | 19 } |
| 20 class ArcPlayStoreEnabledPreferenceHandler; |
| 20 class ArcServiceManager; | 21 class ArcServiceManager; |
| 21 class ArcSessionManager; | 22 class ArcSessionManager; |
| 22 class FakeAppInstance; | 23 class FakeAppInstance; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace chromeos { | 26 namespace chromeos { |
| 26 class FakeChromeUserManager; | 27 class FakeChromeUserManager; |
| 27 class ScopedUserManagerEnabler; | 28 class ScopedUserManagerEnabler; |
| 28 } | 29 } |
| 29 | 30 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 bool FindPackage(const arc::mojom::ArcPackageInfo& package); | 90 bool FindPackage(const arc::mojom::ArcPackageInfo& package); |
| 90 void CreateFakeAppsAndPackages(); | 91 void CreateFakeAppsAndPackages(); |
| 91 | 92 |
| 92 // Unowned pointer. | 93 // Unowned pointer. |
| 93 Profile* profile_ = nullptr; | 94 Profile* profile_ = nullptr; |
| 94 | 95 |
| 95 ArcAppListPrefs* arc_app_list_pref_ = nullptr; | 96 ArcAppListPrefs* arc_app_list_pref_ = nullptr; |
| 96 | 97 |
| 97 std::unique_ptr<arc::ArcServiceManager> arc_service_manager_; | 98 std::unique_ptr<arc::ArcServiceManager> arc_service_manager_; |
| 98 std::unique_ptr<arc::ArcSessionManager> arc_session_manager_; | 99 std::unique_ptr<arc::ArcSessionManager> arc_session_manager_; |
| 100 std::unique_ptr<arc::ArcPlayStoreEnabledPreferenceHandler> |
| 101 arc_play_store_enabled_preference_handler_; |
| 99 std::unique_ptr<arc::FakeAppInstance> app_instance_; | 102 std::unique_ptr<arc::FakeAppInstance> app_instance_; |
| 100 | 103 |
| 101 std::unique_ptr<chromeos::ScopedUserManagerEnabler> user_manager_enabler_; | 104 std::unique_ptr<chromeos::ScopedUserManagerEnabler> user_manager_enabler_; |
| 102 std::vector<arc::mojom::AppInfo> fake_apps_; | 105 std::vector<arc::mojom::AppInfo> fake_apps_; |
| 103 std::vector<arc::mojom::AppInfo> fake_default_apps_; | 106 std::vector<arc::mojom::AppInfo> fake_default_apps_; |
| 104 std::vector<arc::mojom::ArcPackageInfo> fake_packages_; | 107 std::vector<arc::mojom::ArcPackageInfo> fake_packages_; |
| 105 std::vector<arc::mojom::ShortcutInfo> fake_shortcuts_; | 108 std::vector<arc::mojom::ShortcutInfo> fake_shortcuts_; |
| 106 | 109 |
| 107 bool dbus_thread_manager_initialized_ = false; | 110 bool dbus_thread_manager_initialized_ = false; |
| 108 | 111 |
| 109 DISALLOW_COPY_AND_ASSIGN(ArcAppTest); | 112 DISALLOW_COPY_AND_ASSIGN(ArcAppTest); |
| 110 }; | 113 }; |
| 111 | 114 |
| 112 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_TEST_H_ | 115 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_TEST_H_ |
| OLD | NEW |