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

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

Issue 2379223004: Switch from Delegate to Observer. (Closed)
Patch Set: Rebase Created 4 years, 2 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
« no previous file with comments | « components/arc/test/fake_policy_instance.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 5 #include <memory>
6 #include <string> 6 #include <string>
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "components/arc/instance_holder.h" 12 #include "components/arc/instance_holder.h"
13 #include "components/arc/test/fake_arc_bridge_instance.h"
14 #include "components/arc/test/fake_arc_bridge_service.h" 13 #include "components/arc/test/fake_arc_bridge_service.h"
15 #include "components/arc/test/fake_notifications_instance.h" 14 #include "components/arc/test/fake_notifications_instance.h"
16 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
17 #include "ui/arc/notification/arc_notification_manager.h" 16 #include "ui/arc/notification/arc_notification_manager.h"
18 #include "ui/message_center/fake_message_center.h" 17 #include "ui/message_center/fake_message_center.h"
19 18
20 namespace arc { 19 namespace arc {
21 20
22 namespace { 21 namespace {
23 22
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 CreateNotificationWithKey("notification2"); 177 CreateNotificationWithKey("notification2");
179 CreateNotificationWithKey("notification3"); 178 CreateNotificationWithKey("notification3");
180 EXPECT_EQ(3u, message_center()->GetVisibleNotifications().size()); 179 EXPECT_EQ(3u, message_center()->GetVisibleNotifications().size());
181 180
182 arc_notification_manager()->OnInstanceClosed(); 181 arc_notification_manager()->OnInstanceClosed();
183 182
184 EXPECT_EQ(0u, message_center()->GetVisibleNotifications().size()); 183 EXPECT_EQ(0u, message_center()->GetVisibleNotifications().size());
185 } 184 }
186 185
187 } // namespace arc 186 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/test/fake_policy_instance.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698