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

Unified Diff: components/arc/test/fake_app_instance.cc

Issue 2601323002: arc: Handle default app not availble case. (Closed)
Patch Set: comments addresssed Created 3 years, 12 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 side-by-side diff with in-line comments
Download patch
« components/arc/common/app.mojom ('K') | « components/arc/test/fake_app_instance.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/test/fake_app_instance.cc
diff --git a/components/arc/test/fake_app_instance.cc b/components/arc/test/fake_app_instance.cc
index 7ae00a6398e824804db1f0c135ae8ddde2904ea2..b9885a33973ca00f94075bd718f1eaacab6f92ef 100644
--- a/components/arc/test/fake_app_instance.cc
+++ b/components/arc/test/fake_app_instance.cc
@@ -191,6 +191,19 @@ void FakeAppInstance::SendPackageUninstalled(const std::string& package_name) {
app_host_->OnPackageRemoved(package_name);
}
+void FakeAppInstance::SendInstallationStarted(const std::string& package_name) {
+ app_host_->OnInstallationStarted(package_name);
+}
+
+void FakeAppInstance::SendInstallationFinished(const std::string& package_name,
+ bool success) {
+ mojom::InstallationResult result;
+ result.package_name = package_name;
+ result.success = success;
+ app_host_->OnInstallationFinished(
+ mojom::InstallationResultPtr(result.Clone()));
+}
+
void FakeAppInstance::CanHandleResolution(
const std::string& package_name,
const std::string& activity,
« components/arc/common/app.mojom ('K') | « components/arc/test/fake_app_instance.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698