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

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

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 #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( 9 FakeNotificationsInstance::FakeNotificationsInstance(
10 mojo::InterfaceRequest<NotificationsInstance> request) 10 mojo::InterfaceRequest<mojom::NotificationsInstance> request)
11 : binding_(this, std::move(request)) {} 11 : binding_(this, std::move(request)) {}
12 12
13 FakeNotificationsInstance::~FakeNotificationsInstance() {} 13 FakeNotificationsInstance::~FakeNotificationsInstance() {}
14 14
15 void FakeNotificationsInstance::SendNotificationEventToAndroid( 15 void FakeNotificationsInstance::SendNotificationEventToAndroid(
16 const mojo::String& key, 16 const mojo::String& key,
17 ArcNotificationEvent event) { 17 mojom::ArcNotificationEvent event) {
18 events_.emplace_back(key, event); 18 events_.emplace_back(key, event);
19 } 19 }
20 20
21 void FakeNotificationsInstance::Init(NotificationsHostPtr host_ptr) {} 21 void FakeNotificationsInstance::Init(mojom::NotificationsHostPtr host_ptr) {}
22 22
23 const std::vector<std::pair<mojo::String, ArcNotificationEvent>>& 23 const std::vector<std::pair<mojo::String, mojom::ArcNotificationEvent>>&
24 FakeNotificationsInstance::events() const { 24 FakeNotificationsInstance::events() const {
25 return events_; 25 return events_;
26 } 26 }
27 27
28 void FakeNotificationsInstance::WaitForIncomingMethodCall() { 28 void FakeNotificationsInstance::WaitForIncomingMethodCall() {
29 binding_.WaitForIncomingMethodCall(); 29 binding_.WaitForIncomingMethodCall();
30 } 30 }
31 31
32 } // namespace arc 32 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/test/fake_notifications_instance.h ('k') | ui/arc/notification/arc_notification_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698