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

Side by Side Diff: ui/arc/notification/arc_notification_manager_unittest.cc

Issue 2574013003: Refactor ArcSessionRunner part 1. (Closed)
Patch Set: rebase to the split CL Created 4 years 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 <map> 5 #include <map>
6 #include <memory> 6 #include <memory>
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "components/arc/arc_bridge_service.h"
13 #include "components/arc/instance_holder.h" 14 #include "components/arc/instance_holder.h"
14 #include "components/arc/test/fake_arc_bridge_service.h"
15 #include "components/arc/test/fake_notifications_instance.h" 15 #include "components/arc/test/fake_notifications_instance.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "ui/arc/notification/arc_notification_manager.h" 17 #include "ui/arc/notification/arc_notification_manager.h"
18 #include "ui/message_center/fake_message_center.h" 18 #include "ui/message_center/fake_message_center.h"
19 19
20 namespace arc { 20 namespace arc {
21 21
22 namespace { 22 namespace {
23 23
24 const char kDummyNotificationKey[] = "DUMMY_NOTIFICATION_KEY"; 24 const char kDummyNotificationKey[] = "DUMMY_NOTIFICATION_KEY";
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 CreateNotificationWithKey("notification2"); 175 CreateNotificationWithKey("notification2");
176 CreateNotificationWithKey("notification3"); 176 CreateNotificationWithKey("notification3");
177 EXPECT_EQ(3u, message_center()->GetVisibleNotifications().size()); 177 EXPECT_EQ(3u, message_center()->GetVisibleNotifications().size());
178 178
179 arc_notification_manager()->OnInstanceClosed(); 179 arc_notification_manager()->OnInstanceClosed();
180 180
181 EXPECT_EQ(0u, message_center()->GetVisibleNotifications().size()); 181 EXPECT_EQ(0u, message_center()->GetVisibleNotifications().size());
182 } 182 }
183 183
184 } // namespace arc 184 } // namespace arc
OLDNEW
« components/arc/arc_session_runner.h ('K') | « components/arc/test/fake_arc_bridge_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698