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

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

Issue 2174753004: arc:Integration test for Arc package Chrome sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@current
Patch Set: Modify target 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/BUILD.gn ('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 8e734a6fb06d76905fc88b928efeb993e634d8ca..c9c06c64c59265b6d50f7997cdefbc872d552958 100644
--- a/components/arc/test/fake_app_instance.cc
+++ b/components/arc/test/fake_app_instance.cc
@@ -175,6 +175,7 @@ void FakeAppInstance::CanHandleResolution(
}
void FakeAppInstance::UninstallPackage(const mojo::String& package_name) {
+ app_host_->OnPackageRemoved(package_name);
}
void FakeAppInstance::GetTaskInfo(int32_t task_id,
@@ -205,7 +206,9 @@ void FakeAppInstance::SetNotificationsEnabled(const mojo::String& package_name,
bool enabled) {
}
-void FakeAppInstance::InstallPackage(mojom::ArcPackageInfoPtr arcPackageInfo) {}
+void FakeAppInstance::InstallPackage(mojom::ArcPackageInfoPtr arcPackageInfo) {
+ app_host_->OnPackageAdded(std::move(arcPackageInfo));
+}
void FakeAppInstance::LaunchIntent(
const mojo::String& intent_uri,
« no previous file with comments | « chrome/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698