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

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

Issue 2205843004: [Merge to M53] arc: Initial implemetation of Chrome sync for Arc packages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 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 21 matching lines...) Expand all
32 32
33 // Helper class to initialize arc bridge to work with arc apps in unit tests. 33 // Helper class to initialize arc bridge to work with arc apps in unit tests.
34 class ArcAppTest { 34 class ArcAppTest {
35 public: 35 public:
36 ArcAppTest(); 36 ArcAppTest();
37 virtual ~ArcAppTest(); 37 virtual ~ArcAppTest();
38 38
39 void SetUp(Profile* profile); 39 void SetUp(Profile* profile);
40 void TearDown(); 40 void TearDown();
41 41
42 // Public methods to modify AppInstance for unit_tests.
43 void StopArcInstance();
44 void RestartArcInstance();
45
42 static std::string GetAppId(const arc::mojom::AppInfo& app_info); 46 static std::string GetAppId(const arc::mojom::AppInfo& app_info);
43 static std::string GetAppId(const arc::mojom::ShortcutInfo& shortcut); 47 static std::string GetAppId(const arc::mojom::ShortcutInfo& shortcut);
44 48
45 const std::vector<arc::mojom::ArcPackageInfo>& fake_packages() const { 49 const std::vector<arc::mojom::ArcPackageInfo>& fake_packages() const {
46 return fake_packages_; 50 return fake_packages_;
47 } 51 }
48 52
49 void AddPackage(const arc::mojom::ArcPackageInfo& package); 53 void AddPackage(const arc::mojom::ArcPackageInfo& package);
50 54
51 void RemovePackage(const arc::mojom::ArcPackageInfo& package); 55 void RemovePackage(const arc::mojom::ArcPackageInfo& package);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 std::unique_ptr<arc::ArcAuthService> auth_service_; 87 std::unique_ptr<arc::ArcAuthService> auth_service_;
84 std::unique_ptr<chromeos::ScopedUserManagerEnabler> user_manager_enabler_; 88 std::unique_ptr<chromeos::ScopedUserManagerEnabler> user_manager_enabler_;
85 std::vector<arc::mojom::AppInfo> fake_apps_; 89 std::vector<arc::mojom::AppInfo> fake_apps_;
86 std::vector<arc::mojom::ArcPackageInfo> fake_packages_; 90 std::vector<arc::mojom::ArcPackageInfo> fake_packages_;
87 std::vector<arc::mojom::ShortcutInfo> fake_shortcuts_; 91 std::vector<arc::mojom::ShortcutInfo> fake_shortcuts_;
88 92
89 DISALLOW_COPY_AND_ASSIGN(ArcAppTest); 93 DISALLOW_COPY_AND_ASSIGN(ArcAppTest);
90 }; 94 };
91 95
92 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_TEST_H_ 96 #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_factory.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