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

Side by Side Diff: chrome/browser/chromeos/login/network_screen_browsertest.cc

Issue 1692005: 2nd attempt to land http://codereview.chromium.org/1676002 for njw... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 (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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/network_screen.cc ('k') | chrome/browser/chromeos/options/internet_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698