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

Side by Side Diff: components/arc/test/fake_notifications_instance.h

Issue 1885683005: Add module suffix in .mojom files for components/arc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_ARC_TEST_FAKE_NOTIFICATIONS_INSTANCE_H_ 5 #ifndef COMPONENTS_ARC_TEST_FAKE_NOTIFICATIONS_INSTANCE_H_
6 #define COMPONENTS_ARC_TEST_FAKE_NOTIFICATIONS_INSTANCE_H_ 6 #define COMPONENTS_ARC_TEST_FAKE_NOTIFICATIONS_INSTANCE_H_
7 7
8 #include "components/arc/common/notifications.mojom.h" 8 #include "components/arc/common/notifications.mojom.h"
9 #include "components/arc/test/fake_arc_bridge_instance.h" 9 #include "components/arc/test/fake_arc_bridge_instance.h"
10 10
11 namespace arc { 11 namespace arc {
12 12
13 class FakeNotificationsInstance : public NotificationsInstance { 13 class FakeNotificationsInstance : public mojom::NotificationsInstance {
14 public: 14 public:
15 FakeNotificationsInstance( 15 FakeNotificationsInstance(
16 mojo::InterfaceRequest<NotificationsInstance> request); 16 mojo::InterfaceRequest<mojom::NotificationsInstance> request);
17 ~FakeNotificationsInstance() override; 17 ~FakeNotificationsInstance() override;
18 18
19 void Init(NotificationsHostPtr host_ptr) override; 19 void Init(mojom::NotificationsHostPtr host_ptr) override;
20 20
21 void SendNotificationEventToAndroid(const mojo::String& key, 21 void SendNotificationEventToAndroid(
22 ArcNotificationEvent event) override; 22 const mojo::String& key,
23 mojom::ArcNotificationEvent event) override;
23 24
24 const std::vector<std::pair<mojo::String, ArcNotificationEvent>>& events() 25 const std::vector<std::pair<mojo::String, mojom::ArcNotificationEvent>>&
25 const; 26 events() const;
26 27
27 void WaitForIncomingMethodCall(); 28 void WaitForIncomingMethodCall();
28 29
29 private: 30 private:
30 std::vector<std::pair<mojo::String, ArcNotificationEvent>> events_; 31 std::vector<std::pair<mojo::String, mojom::ArcNotificationEvent>> events_;
31 32
32 mojo::Binding<NotificationsInstance> binding_; 33 mojo::Binding<mojom::NotificationsInstance> binding_;
33 34
34 DISALLOW_COPY_AND_ASSIGN(FakeNotificationsInstance); 35 DISALLOW_COPY_AND_ASSIGN(FakeNotificationsInstance);
35 }; 36 };
36 37
37 } // namespace arc 38 } // namespace arc
38 39
39 #endif // COMPONENTS_ARC_TEST_FAKE_NOTIFICATIONS_INSTANCE_H_ 40 #endif // COMPONENTS_ARC_TEST_FAKE_NOTIFICATIONS_INSTANCE_H_
OLDNEW
« no previous file with comments | « components/arc/test/fake_arc_bridge_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