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

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

Issue 2138513002: arc: Use the new InstanceHolder for unittests (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@bridge_refactor_first
Patch Set: Rebase 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 007ae0b0fe285c34b8cb1bcec1cee42314280c1e..070cb68370874327fc4a8ec5093747f57c24988e 100644
--- a/components/arc/test/fake_notifications_instance.cc
+++ b/components/arc/test/fake_notifications_instance.cc
@@ -6,11 +6,8 @@
namespace arc {
-FakeNotificationsInstance::FakeNotificationsInstance(
- mojo::InterfaceRequest<mojom::NotificationsInstance> request)
- : binding_(this, std::move(request)) {}
-
-FakeNotificationsInstance::~FakeNotificationsInstance() {}
+FakeNotificationsInstance::FakeNotificationsInstance() = default;
+FakeNotificationsInstance::~FakeNotificationsInstance() = default;
void FakeNotificationsInstance::SendNotificationEventToAndroid(
const mojo::String& key,
@@ -25,8 +22,4 @@ FakeNotificationsInstance::events() const {
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