OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/chromeos/status/data_promo_notification.h" | 5 #include "chrome/browser/chromeos/status/data_promo_notification.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/macros.h" |
8 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
9 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" | 10 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" |
10 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 11 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
11 #include "chrome/test/base/testing_browser_process.h" | 12 #include "chrome/test/base/testing_browser_process.h" |
12 #include "chrome/test/base/testing_profile_manager.h" | 13 #include "chrome/test/base/testing_profile_manager.h" |
13 #include "chromeos/chromeos_switches.h" | 14 #include "chromeos/chromeos_switches.h" |
14 #include "chromeos/dbus/dbus_thread_manager.h" | 15 #include "chromeos/dbus/dbus_thread_manager.h" |
15 #include "chromeos/dbus/shill_device_client.h" | 16 #include "chromeos/dbus/shill_device_client.h" |
16 #include "chromeos/dbus/shill_service_client.h" | 17 #include "chromeos/dbus/shill_service_client.h" |
17 #include "chromeos/login/login_state.h" | 18 #include "chromeos/login/login_state.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 153 |
153 ui::NetworkConnect::Get()->ConnectToNetwork(kCellularServicePath); | 154 ui::NetworkConnect::Get()->ConnectToNetwork(kCellularServicePath); |
154 base::RunLoop().RunUntilIdle(); | 155 base::RunLoop().RunUntilIdle(); |
155 // Connecting to cellular network (which here makes it the default network) | 156 // Connecting to cellular network (which here makes it the default network) |
156 // should trigger the Data Saver notification. | 157 // should trigger the Data Saver notification. |
157 EXPECT_TRUE(message_center->FindVisibleNotificationById(kNotificationId)); | 158 EXPECT_TRUE(message_center->FindVisibleNotificationById(kNotificationId)); |
158 } | 159 } |
159 | 160 |
160 } // namespace test | 161 } // namespace test |
161 } // namespace chromeos | 162 } // namespace chromeos |
OLD | NEW |