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

Side by Side Diff: ash/system/chromeos/managed/tray_locally_managed_user_unittest.cc

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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 "ash/system/chromeos/managed/tray_locally_managed_user.h" 5 #include "ash/system/chromeos/managed/tray_locally_managed_user.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/system/user/login_status.h" 8 #include "ash/system/user/login_status.h"
9 #include "ash/test/ash_test_base.h" 9 #include "ash/test/ash_test_base.h"
10 #include "ash/test/test_system_tray_delegate.h" 10 #include "ash/test/test_system_tray_delegate.h"
11 #include "ui/message_center/message_center.h" 11 #include "ui/message_center/message_center.h"
12 #include "ui/message_center/notification.h" 12 #include "ui/message_center/notification.h"
13 #include "ui/message_center/notification_list.h" 13 #include "ui/message_center/notification_list.h"
14 #include "ui/message_center/notification_types.h" 14 #include "ui/message_center/notification_types.h"
15 15
16 using message_center::NotificationList; 16 using message_center::NotificationList;
17 17
18 namespace ash { 18 namespace ash {
19 namespace internal {
20 19
21 class TrayLocallyManagedUserTest : public test::AshTestBase { 20 class TrayLocallyManagedUserTest : public test::AshTestBase {
22 public: 21 public:
23 TrayLocallyManagedUserTest() {} 22 TrayLocallyManagedUserTest() {}
24 virtual ~TrayLocallyManagedUserTest() {} 23 virtual ~TrayLocallyManagedUserTest() {}
25 24
26 protected: 25 protected:
27 message_center::Notification* GetPopup(); 26 message_center::Notification* GetPopup();
28 27
29 private: 28 private:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 77
79 TEST_F(TrayLocallyManagedUserInitialTest, LocallyManagedUserNoCrash) { 78 TEST_F(TrayLocallyManagedUserInitialTest, LocallyManagedUserNoCrash) {
80 // Initial login status is already LOCALLY_MANAGED, which should create 79 // Initial login status is already LOCALLY_MANAGED, which should create
81 // the notification and should not cause crashes. 80 // the notification and should not cause crashes.
82 message_center::Notification* notification = GetPopup(); 81 message_center::Notification* notification = GetPopup();
83 ASSERT_NE(static_cast<message_center::Notification*>(NULL), notification); 82 ASSERT_NE(static_cast<message_center::Notification*>(NULL), notification);
84 EXPECT_EQ(static_cast<int>(message_center::SYSTEM_PRIORITY), 83 EXPECT_EQ(static_cast<int>(message_center::SYSTEM_PRIORITY),
85 notification->rich_notification_data().priority); 84 notification->rich_notification_data().priority);
86 } 85 }
87 86
88 } // namespace test
89 } // namespace 87 } // namespace
OLDNEW
« no previous file with comments | « ash/system/chromeos/managed/tray_locally_managed_user.cc ('k') | ash/system/chromeos/network/network_detailed_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698