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

Side by Side Diff: chrome/browser/chromeos/options/wifi_config_view_browsertest.cc

Issue 3034038: GTTF: Move more test server code from net/url_request/url_request_unittest.h (Closed)
Patch Set: hopefully final Created 10 years, 4 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
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 "chrome/browser/chromeos/options/wifi_config_view.h" 5 #include "chrome/browser/chromeos/options/wifi_config_view.h"
6 6
7 #include "base/string_util.h"
8 #include "base/utf_string_conversions.h"
7 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" 9 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h"
8 #include "chrome/browser/chromeos/cros/mock_network_library.h" 10 #include "chrome/browser/chromeos/cros/mock_network_library.h"
9 11
10 namespace chromeos { 12 namespace chromeos {
11 using ::testing::AnyNumber; 13 using ::testing::AnyNumber;
12 using ::testing::InvokeWithoutArgs; 14 using ::testing::InvokeWithoutArgs;
13 using ::testing::Return; 15 using ::testing::Return;
14 using ::testing::ReturnRef; 16 using ::testing::ReturnRef;
15 using ::testing::_; 17 using ::testing::_;
16 18
(...skipping 27 matching lines...) Expand all
44 IN_PROC_BROWSER_TEST_F(WifiConfigViewTest, ChangePasswordSaveTest) { 46 IN_PROC_BROWSER_TEST_F(WifiConfigViewTest, ChangePasswordSaveTest) {
45 EXPECT_CALL(*mock_network_library_, SaveWifiNetwork(_)).Times(1); 47 EXPECT_CALL(*mock_network_library_, SaveWifiNetwork(_)).Times(1);
46 WifiNetwork wifi = WifiNetwork(); 48 WifiNetwork wifi = WifiNetwork();
47 wifi.set_encryption(SECURITY_WEP); 49 wifi.set_encryption(SECURITY_WEP);
48 WifiConfigView* view = new WifiConfigView(NULL, wifi); 50 WifiConfigView* view = new WifiConfigView(NULL, wifi);
49 view->passphrase_textfield_->SetText(ASCIIToUTF16("test")); 51 view->passphrase_textfield_->SetText(ASCIIToUTF16("test"));
50 view->Save(); 52 view->Save();
51 } 53 }
52 54
53 } // namespace chromeos 55 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/notifications/notification_browsertest.cc ('k') | chrome/browser/collected_cookies_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698