| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "app/combobox_model.h" | 7 #include "app/combobox_model.h" |
| 8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 DummyComboboxModel combobox_model; | 286 DummyComboboxModel combobox_model; |
| 287 views::Combobox combobox(&combobox_model); | 287 views::Combobox combobox(&combobox_model); |
| 288 | 288 |
| 289 // Emulate combobox selection. | 289 // Emulate combobox selection. |
| 290 EthernetExpectations(false, false); | 290 EthernetExpectations(false, false); |
| 291 WifiCellularNetworksExpectations(); | 291 WifiCellularNetworksExpectations(); |
| 292 WifiSsidExpectation(std::string()); | 292 WifiSsidExpectation(std::string()); |
| 293 network_screen->ItemChanged(&combobox, 0, 1); | 293 network_screen->ItemChanged(&combobox, 0, 1); |
| 294 network_view->SetSelectedNetworkItem(1); | 294 network_view->SetSelectedNetworkItem(1); |
| 295 EXPECT_CALL(*mock_network_library_, | 295 EXPECT_CALL(*mock_network_library_, |
| 296 ConnectToWifiNetwork(A<WifiNetwork>(), string16())) | 296 ConnectToWifiNetwork(A<WifiNetwork>(), string16(), string16(), |
| 297 string16())) |
| 297 .Times(1); | 298 .Times(1); |
| 298 ui_test_utils::RunAllPendingInMessageLoop(); | 299 ui_test_utils::RunAllPendingInMessageLoop(); |
| 299 ASSERT_EQ(2, network_screen->GetItemCount()); | 300 ASSERT_EQ(2, network_screen->GetItemCount()); |
| 300 | 301 |
| 301 // Emulate connecting to WiFi network. | 302 // Emulate connecting to WiFi network. |
| 302 EthernetExpectations(false, false); | 303 EthernetExpectations(false, false); |
| 303 SetupWifiNetwork(false, true); | 304 SetupWifiNetwork(false, true); |
| 304 WifiExpectations(false, true); | 305 WifiExpectations(false, true); |
| 305 WifiCellularNetworksExpectations(); | 306 WifiCellularNetworksExpectations(); |
| 306 WifiSsidExpectation(wifi_.ssid); | 307 WifiSsidExpectation(wifi_.ssid); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 SetupCellularNetwork(true, false); | 376 SetupCellularNetwork(true, false); |
| 376 CellularExpectations(true, false); | 377 CellularExpectations(true, false); |
| 377 WifiCellularNetworksExpectations(); | 378 WifiCellularNetworksExpectations(); |
| 378 CellularNameExpectation(cellular_.name); | 379 CellularNameExpectation(cellular_.name); |
| 379 network_screen->NetworkChanged(network_library); | 380 network_screen->NetworkChanged(network_library); |
| 380 ui_test_utils::RunAllPendingInMessageLoop(); | 381 ui_test_utils::RunAllPendingInMessageLoop(); |
| 381 controller()->set_observer(NULL); | 382 controller()->set_observer(NULL); |
| 382 } | 383 } |
| 383 | 384 |
| 384 } // namespace chromeos | 385 } // namespace chromeos |
| OLD | NEW |