OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
7 #include "mojo/public/cpp/application/application_impl.h" | 7 #include "mojo/public/cpp/application/application_impl.h" |
8 #include "mojo/public/cpp/application/application_test_base.h" | 8 #include "mojo/public/cpp/application/application_test_base.h" |
9 #include "mojo/public/cpp/bindings/callback.h" | 9 #include "mojo/public/cpp/bindings/callback.h" |
10 #include "mojo/public/cpp/environment/logging.h" | 10 #include "mojo/public/cpp/environment/logging.h" |
11 #include "mojo/public/cpp/system/macros.h" | 11 #include "mojo/public/cpp/system/macros.h" |
12 #include "mojo/services/notifications/public/interfaces/notifications.mojom.h" | 12 #include "mojo/services/notifications/interfaces/notifications.mojom.h" |
13 | 13 |
14 namespace mojo { | 14 namespace mojo { |
15 namespace { | 15 namespace { |
16 | 16 |
17 // Tests the Notification mojo service on android. | 17 // Tests the Notification mojo service on android. |
18 class NotificationsApplicationTest : public test::ApplicationTestBase, | 18 class NotificationsApplicationTest : public test::ApplicationTestBase, |
19 public notifications::NotificationClient { | 19 public notifications::NotificationClient { |
20 public: | 20 public: |
21 NotificationsApplicationTest() : ApplicationTestBase(), binding_(this) {} | 21 NotificationsApplicationTest() : ApplicationTestBase(), binding_(this) {} |
22 ~NotificationsApplicationTest() override {} | 22 ~NotificationsApplicationTest() override {} |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 notification_client.Pass(), | 69 notification_client.Pass(), |
70 GetProxy(¬ification)); | 70 GetProxy(¬ification)); |
71 notifications::NotificationDataPtr updated_notification_data = | 71 notifications::NotificationDataPtr updated_notification_data = |
72 notifications::NotificationData::New(); | 72 notifications::NotificationData::New(); |
73 notification->Update(updated_notification_data.Pass()); | 73 notification->Update(updated_notification_data.Pass()); |
74 notification->Cancel(); | 74 notification->Cancel(); |
75 } | 75 } |
76 | 76 |
77 } // namespace | 77 } // namespace |
78 } // namespace mojo | 78 } // namespace mojo |
OLD | NEW |