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

Side by Side Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos_browsertest_chromeos.cc

Issue 2171483002: Remove redundant SystemTrayDelegateChromeOSTest.BluetoothStatus test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ui/ash/system_tray_delegate_chromeos.h" 5 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ash/common/system/date/date_default_view.h" 9 #include "ash/common/system/date/date_default_view.h"
10 #include "ash/common/system/date/date_view.h" 10 #include "ash/common/system/date/date_view.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 content::RunAllPendingInMessageLoop(); 118 content::RunAllPendingInMessageLoop();
119 AddUser(account_id2_.GetUserEmail()); 119 AddUser(account_id2_.GetUserEmail());
120 SetupUserProfile(account_id2_, false /* Use_24_hour_clock. */); 120 SetupUserProfile(account_id2_, false /* Use_24_hour_clock. */);
121 CreateDefaultView(); 121 CreateDefaultView();
122 EXPECT_EQ(base::k12HourClock, GetHourType()); 122 EXPECT_EQ(base::k12HourClock, GetHourType());
123 user_manager::UserManager::Get()->SwitchActiveUser(account_id1_); 123 user_manager::UserManager::Get()->SwitchActiveUser(account_id1_);
124 CreateDefaultView(); 124 CreateDefaultView();
125 EXPECT_EQ(base::k24HourClock, GetHourType()); 125 EXPECT_EQ(base::k24HourClock, GetHourType());
126 } 126 }
127 127
128 // Test that checking bluetooth status early on doesn't cause a crash.
129 IN_PROC_BROWSER_TEST_F(SystemTrayDelegateChromeOSTest, BluetoothStatus) {
130 SystemTrayDelegateChromeOS delegate;
131 EXPECT_FALSE(delegate.GetBluetoothAvailable());
132 EXPECT_FALSE(delegate.GetBluetoothEnabled());
133 EXPECT_FALSE(delegate.IsBluetoothDiscovering());
134 }
135
136 // Makes sure that no notifications are shown when rotating the 128 // Makes sure that no notifications are shown when rotating the
137 // display on display settings URLs. 129 // display on display settings URLs.
138 IN_PROC_BROWSER_TEST_F(DisplayNotificationsTest, 130 IN_PROC_BROWSER_TEST_F(DisplayNotificationsTest,
139 TestDisplayOrientationChangeNotification) { 131 TestDisplayOrientationChangeNotification) {
140 // Open the display settings page. 132 // Open the display settings page.
141 ui_test_utils::NavigateToURL(browser(), 133 ui_test_utils::NavigateToURL(browser(),
142 GURL("chrome://settings-frame/display")); 134 GURL("chrome://settings-frame/display"));
143 // Rotate the display 90 degrees. 135 // Rotate the display 90 degrees.
144 UpdateDisplay("400x400/r"); 136 UpdateDisplay("400x400/r");
145 // Ensure that no notification was displayed. 137 // Ensure that no notification was displayed.
(...skipping 15 matching lines...) Expand all
161 153
162 UpdateDisplay("400x400"); 154 UpdateDisplay("400x400");
163 155
164 ui_test_utils::NavigateToURL(browser(), GURL("chrome://version")); 156 ui_test_utils::NavigateToURL(browser(), GURL("chrome://version"));
165 UpdateDisplay("400x400/r"); 157 UpdateDisplay("400x400/r");
166 // Ensure that there is a notification that is shown. 158 // Ensure that there is a notification that is shown.
167 EXPECT_FALSE(GetVisibleNotifications().empty()); 159 EXPECT_FALSE(GetVisibleNotifications().empty());
168 } 160 }
169 161
170 } // namespace chromeos 162 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698