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

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

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
« no previous file with comments | « components/arc/test/fake_app_instance.cc ('k') | components/arc/test/fake_notifications_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/test/fake_notifications_instance.h
diff --git a/components/arc/test/fake_notifications_instance.h b/components/arc/test/fake_notifications_instance.h
index 1cc91802cf67064d46469ca5243ced0e5b937e32..88f68c06d3e38f8e67fe299412057928034b6f21 100644
--- a/components/arc/test/fake_notifications_instance.h
+++ b/components/arc/test/fake_notifications_instance.h
@@ -4,9 +4,6 @@
#ifndef COMPONENTS_ARC_TEST_FAKE_NOTIFICATIONS_INSTANCE_H_
#define COMPONENTS_ARC_TEST_FAKE_NOTIFICATIONS_INSTANCE_H_
-
-#include <utility>
-#include <vector>
#include "components/arc/common/notifications.mojom.h"
#include "components/arc/test/fake_arc_bridge_instance.h"
@@ -15,7 +12,8 @@
class FakeNotificationsInstance : public mojom::NotificationsInstance {
public:
- FakeNotificationsInstance();
+ FakeNotificationsInstance(
+ mojo::InterfaceRequest<mojom::NotificationsInstance> request);
~FakeNotificationsInstance() override;
void Init(mojom::NotificationsHostPtr host_ptr) override;
@@ -27,8 +25,12 @@
const std::vector<std::pair<mojo::String, mojom::ArcNotificationEvent>>&
events() const;
+ void WaitForIncomingMethodCall();
+
private:
std::vector<std::pair<mojo::String, mojom::ArcNotificationEvent>> events_;
+
+ mojo::Binding<mojom::NotificationsInstance> binding_;
DISALLOW_COPY_AND_ASSIGN(FakeNotificationsInstance);
};
« no previous file with comments | « components/arc/test/fake_app_instance.cc ('k') | components/arc/test/fake_notifications_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698