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

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

Issue 6899025: Show hardware addresses for wifi and ethernet networks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: z Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 .WillRepeatedly(Return(false)); 69 .WillRepeatedly(Return(false));
70 EXPECT_CALL(*mock_network_library_, ethernet_connecting()) 70 EXPECT_CALL(*mock_network_library_, ethernet_connecting())
71 .Times(2) 71 .Times(2)
72 .WillRepeatedly(Return(false)); 72 .WillRepeatedly(Return(false));
73 EXPECT_CALL(*mock_network_library_, wifi_connected()) 73 EXPECT_CALL(*mock_network_library_, wifi_connected())
74 .Times(1) 74 .Times(1)
75 .WillRepeatedly(Return(false)); 75 .WillRepeatedly(Return(false));
76 EXPECT_CALL(*mock_network_library_, cellular_connected()) 76 EXPECT_CALL(*mock_network_library_, cellular_connected())
77 .Times(1) 77 .Times(1)
78 .WillRepeatedly(Return(false)); 78 .WillRepeatedly(Return(false));
79 EXPECT_CALL(*mock_network_library_, FindWifiDevice())
80 .Times(AnyNumber());
81 EXPECT_CALL(*mock_network_library_, FindEthernetDevice())
82 .Times(AnyNumber());
79 83
80 cros_mock_->SetStatusAreaMocksExpectations(); 84 cros_mock_->SetStatusAreaMocksExpectations();
81 85
82 // Override these return values, but do not set specific expectation: 86 // Override these return values, but do not set specific expectation:
83 EXPECT_CALL(*mock_network_library_, wifi_available()) 87 EXPECT_CALL(*mock_network_library_, wifi_available())
84 .Times(AnyNumber()) 88 .Times(AnyNumber())
85 .WillRepeatedly((Return(true))); 89 .WillRepeatedly((Return(true)));
86 EXPECT_CALL(*mock_network_library_, wifi_enabled()) 90 EXPECT_CALL(*mock_network_library_, wifi_enabled())
87 .Times(AnyNumber()) 91 .Times(AnyNumber())
88 .WillRepeatedly((Return(true))); 92 .WillRepeatedly((Return(true)));
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 EXPECT_FALSE(network_view->IsConnecting()); 290 EXPECT_FALSE(network_view->IsConnecting());
287 network_screen->OnConnectionTimeout(); 291 network_screen->OnConnectionTimeout();
288 292
289 // Close infobubble with error message - it makes the test stable. 293 // Close infobubble with error message - it makes the test stable.
290 EXPECT_FALSE(network_view->IsContinueEnabled()); 294 EXPECT_FALSE(network_view->IsContinueEnabled());
291 EXPECT_FALSE(network_view->IsConnecting()); 295 EXPECT_FALSE(network_view->IsConnecting());
292 network_screen->ClearErrors(); 296 network_screen->ClearErrors();
293 } 297 }
294 298
295 } // namespace chromeos 299 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698