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

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

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
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 #include "components/arc/test/fake_notifications_instance.h" 5 #include "components/arc/test/fake_notifications_instance.h"
6 6
7 namespace arc { 7 namespace arc {
8 8
9 FakeNotificationsInstance::FakeNotificationsInstance() = default; 9 FakeNotificationsInstance::FakeNotificationsInstance() = default;
10 FakeNotificationsInstance::~FakeNotificationsInstance() = default; 10 FakeNotificationsInstance::~FakeNotificationsInstance() = default;
11 11
12 void FakeNotificationsInstance::SendNotificationEventToAndroid( 12 void FakeNotificationsInstance::SendNotificationEventToAndroid(
13 const mojo::String& key, 13 const std::string& key,
14 mojom::ArcNotificationEvent event) { 14 mojom::ArcNotificationEvent event) {
15 events_.emplace_back(key, event); 15 events_.emplace_back(key, event);
16 } 16 }
17 17
18 void FakeNotificationsInstance::CreateNotificationWindow( 18 void FakeNotificationsInstance::CreateNotificationWindow(
19 const mojo::String& key) {} 19 const std::string& key) {}
20 20
21 void FakeNotificationsInstance::CloseNotificationWindow( 21 void FakeNotificationsInstance::CloseNotificationWindow(
22 const mojo::String& key) {} 22 const std::string& key) {}
23 23
24 void FakeNotificationsInstance::Init(mojom::NotificationsHostPtr host_ptr) {} 24 void FakeNotificationsInstance::Init(mojom::NotificationsHostPtr host_ptr) {}
25 25
26 const std::vector<std::pair<mojo::String, mojom::ArcNotificationEvent>>& 26 const std::vector<std::pair<std::string, mojom::ArcNotificationEvent>>&
27 FakeNotificationsInstance::events() const { 27 FakeNotificationsInstance::events() const {
28 return events_; 28 return events_;
29 } 29 }
30 30
31 } // namespace arc 31 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/test/fake_notifications_instance.h ('k') | ui/arc/notification/arc_custom_notification_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698