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

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

Issue 2496423004: arc: enable use_new_wrapper_types for notifications.mojom (Closed)
Patch Set: address comment Created 4 years, 1 month 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
« no previous file with comments | « components/arc/BUILD.gn ('k') | components/arc/test/fake_notifications_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string>
8 #include <utility> 9 #include <utility>
9 #include <vector> 10 #include <vector>
10 11
11 #include "components/arc/common/notifications.mojom.h" 12 #include "components/arc/common/notifications.mojom.h"
12 13
13 namespace arc { 14 namespace arc {
14 15
15 class FakeNotificationsInstance : public mojom::NotificationsInstance { 16 class FakeNotificationsInstance : public mojom::NotificationsInstance {
16 public: 17 public:
17 FakeNotificationsInstance(); 18 FakeNotificationsInstance();
18 ~FakeNotificationsInstance() override; 19 ~FakeNotificationsInstance() override;
19 20
20 void Init(mojom::NotificationsHostPtr host_ptr) override; 21 void Init(mojom::NotificationsHostPtr host_ptr) override;
21 22
22 void SendNotificationEventToAndroid( 23 void SendNotificationEventToAndroid(
23 const mojo::String& key, 24 const std::string& key,
24 mojom::ArcNotificationEvent event) override; 25 mojom::ArcNotificationEvent event) override;
25 void CreateNotificationWindow(const mojo::String& key) override; 26 void CreateNotificationWindow(const std::string& key) override;
26 void CloseNotificationWindow(const mojo::String& key) override; 27 void CloseNotificationWindow(const std::string& key) override;
27 28
28 const std::vector<std::pair<mojo::String, mojom::ArcNotificationEvent>>& 29 const std::vector<std::pair<std::string, mojom::ArcNotificationEvent>>&
29 events() const; 30 events() const;
30 31
31 private: 32 private:
32 std::vector<std::pair<mojo::String, mojom::ArcNotificationEvent>> events_; 33 std::vector<std::pair<std::string, mojom::ArcNotificationEvent>> events_;
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/BUILD.gn ('k') | components/arc/test/fake_notifications_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698