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

Side by Side Diff: chrome/browser/notifications/login_state_notification_blocker_chromeos_unittest.cc

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/notifications/login_state_notification_blocker_chromeos .h" 5 #include "chrome/browser/notifications/login_state_notification_blocker_chromeos .h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "ash/common/system/system_notifier.h"
10 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/system/system_notifier.h"
11 #include "ash/test/ash_test_base.h" 11 #include "ash/test/ash_test_base.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "chromeos/login/login_state.h" 15 #include "chromeos/login/login_state.h"
16 #include "ui/message_center/message_center.h" 16 #include "ui/message_center/message_center.h"
17 #include "ui/message_center/notification.h" 17 #include "ui/message_center/notification.h"
18 18
19 using base::UTF8ToUTF16; 19 using base::UTF8ToUTF16;
20 20
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // Lock. 129 // Lock.
130 ash::Shell::GetInstance()->OnLockStateChanged(true); 130 ash::Shell::GetInstance()->OnLockStateChanged(true);
131 EXPECT_EQ(1, GetStateChangedCountAndReset()); 131 EXPECT_EQ(1, GetStateChangedCountAndReset());
132 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id)); 132 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id));
133 133
134 // Unlock. 134 // Unlock.
135 ash::Shell::GetInstance()->OnLockStateChanged(false); 135 ash::Shell::GetInstance()->OnLockStateChanged(false);
136 EXPECT_EQ(1, GetStateChangedCountAndReset()); 136 EXPECT_EQ(1, GetStateChangedCountAndReset());
137 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id)); 137 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id));
138 } 138 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698