| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ | 5 #ifndef COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ |
| 6 #define COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ | 6 #define COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 void SendInstallShortcut(const mojom::ShortcutInfo& shortcuts); | 128 void SendInstallShortcut(const mojom::ShortcutInfo& shortcuts); |
| 129 void SendInstallShortcuts(const std::vector<mojom::ShortcutInfo>& shortcuts); | 129 void SendInstallShortcuts(const std::vector<mojom::ShortcutInfo>& shortcuts); |
| 130 void SetTaskInfo(int32_t task_id, | 130 void SetTaskInfo(int32_t task_id, |
| 131 const std::string& package_name, | 131 const std::string& package_name, |
| 132 const std::string& activity); | 132 const std::string& activity); |
| 133 void SendRefreshPackageList( | 133 void SendRefreshPackageList( |
| 134 const std::vector<mojom::ArcPackageInfo>& packages); | 134 const std::vector<mojom::ArcPackageInfo>& packages); |
| 135 void SendPackageAdded(const mojom::ArcPackageInfo& package); | 135 void SendPackageAdded(const mojom::ArcPackageInfo& package); |
| 136 void SendPackageUninstalled(const std::string& pacakge_name); | 136 void SendPackageUninstalled(const std::string& pacakge_name); |
| 137 | 137 |
| 138 void SendInstallationStarted(const std::string& package_name); |
| 139 void SendInstallationFinished(const std::string& package_name, |
| 140 bool success); |
| 141 |
| 138 int refresh_app_list_count() const { return refresh_app_list_count_; } | 142 int refresh_app_list_count() const { return refresh_app_list_count_; } |
| 139 | 143 |
| 140 const std::vector<std::unique_ptr<Request>>& launch_requests() const { | 144 const std::vector<std::unique_ptr<Request>>& launch_requests() const { |
| 141 return launch_requests_; | 145 return launch_requests_; |
| 142 } | 146 } |
| 143 | 147 |
| 144 const std::vector<std::string>& launch_intents() const { | 148 const std::vector<std::string>& launch_intents() const { |
| 145 return launch_intents_; | 149 return launch_intents_; |
| 146 } | 150 } |
| 147 | 151 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 173 | 177 |
| 174 bool GetFakeIcon(mojom::ScaleFactor scale_factor, | 178 bool GetFakeIcon(mojom::ScaleFactor scale_factor, |
| 175 std::string* png_data_as_string); | 179 std::string* png_data_as_string); |
| 176 | 180 |
| 177 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); | 181 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); |
| 178 }; | 182 }; |
| 179 | 183 |
| 180 } // namespace arc | 184 } // namespace arc |
| 181 | 185 |
| 182 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ | 186 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ |
| OLD | NEW |