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

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

Issue 2146573005: Revert of arc: Use the new InstanceHolder for unittests (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@bridge_refactor_first
Patch Set: Created 4 years, 5 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
Index: components/arc/test/fake_notifications_instance.cc
diff --git a/components/arc/test/fake_notifications_instance.cc b/components/arc/test/fake_notifications_instance.cc
index 070cb68370874327fc4a8ec5093747f57c24988e..007ae0b0fe285c34b8cb1bcec1cee42314280c1e 100644
--- a/components/arc/test/fake_notifications_instance.cc
+++ b/components/arc/test/fake_notifications_instance.cc
@@ -6,8 +6,11 @@
namespace arc {
-FakeNotificationsInstance::FakeNotificationsInstance() = default;
-FakeNotificationsInstance::~FakeNotificationsInstance() = default;
+FakeNotificationsInstance::FakeNotificationsInstance(
+ mojo::InterfaceRequest<mojom::NotificationsInstance> request)
+ : binding_(this, std::move(request)) {}
+
+FakeNotificationsInstance::~FakeNotificationsInstance() {}
void FakeNotificationsInstance::SendNotificationEventToAndroid(
const mojo::String& key,
@@ -22,4 +25,8 @@
return events_;
}
+void FakeNotificationsInstance::WaitForIncomingMethodCall() {
+ binding_.WaitForIncomingMethodCall();
+}
+
} // namespace arc
« no previous file with comments | « components/arc/test/fake_notifications_instance.h ('k') | ui/arc/notification/arc_notification_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698