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

Side by Side Diff: services/notifications/apptests/notifications_apptest.cc

Issue 1985223003: Factor stuff from ApplicationImpl out to a new class, ApplicationImplBase. (Closed) Base URL: https://github.com/domokit/mojo.git@work790_app_test_base_no_app_impl
Patch Set: fix android Created 4 years, 7 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 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_test_base.h" 7 #include "mojo/public/cpp/application/application_test_base.h"
8 #include "mojo/public/cpp/application/connect.h" 8 #include "mojo/public/cpp/application/connect.h"
9 #include "mojo/public/cpp/bindings/binding.h"
9 #include "mojo/public/cpp/bindings/callback.h" 10 #include "mojo/public/cpp/bindings/callback.h"
10 #include "mojo/public/cpp/environment/logging.h" 11 #include "mojo/public/cpp/environment/logging.h"
11 #include "mojo/public/cpp/system/macros.h" 12 #include "mojo/public/cpp/system/macros.h"
12 #include "mojo/services/notifications/interfaces/notifications.mojom.h" 13 #include "mojo/services/notifications/interfaces/notifications.mojom.h"
13 14
14 namespace mojo { 15 namespace mojo {
15 namespace { 16 namespace {
16 17
17 // Tests the Notification mojo service on android. 18 // Tests the Notification mojo service on android.
18 class NotificationsApplicationTest : public test::ApplicationTestBase, 19 class NotificationsApplicationTest : public test::ApplicationTestBase,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 notification_client.Pass(), 70 notification_client.Pass(),
70 GetProxy(&notification)); 71 GetProxy(&notification));
71 notifications::NotificationDataPtr updated_notification_data = 72 notifications::NotificationDataPtr updated_notification_data =
72 notifications::NotificationData::New(); 73 notifications::NotificationData::New();
73 notification->Update(updated_notification_data.Pass()); 74 notification->Update(updated_notification_data.Pass());
74 notification->Cancel(); 75 notification->Cancel();
75 } 76 }
76 77
77 } // namespace 78 } // namespace
78 } // namespace mojo 79 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698