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

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

Issue 11299236: This moves the ONC parsing code into chromeos/network/onc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit tests Created 8 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "chrome/browser/chromeos/cros/cros_library.h" 6 #include "chrome/browser/chromeos/cros/cros_library.h"
7 #include "chrome/browser/chromeos/cros/mock_network_library.h" 7 #include "chrome/browser/chromeos/cros/mock_network_library.h"
8 #include "chrome/browser/chromeos/cros/network_library.h" 8 #include "chrome/browser/chromeos/cros/network_library.h"
9 #include "chrome/browser/chromeos/login/mock_screen_observer.h" 9 #include "chrome/browser/chromeos/login/mock_screen_observer.h"
10 #include "chrome/browser/chromeos/login/network_screen.h" 10 #include "chrome/browser/chromeos/login/network_screen.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // these mocks will be active once status bar is initialized. 62 // these mocks will be active once status bar is initialized.
63 EXPECT_CALL(*mock_network_library_, AddUserActionObserver(_)) 63 EXPECT_CALL(*mock_network_library_, AddUserActionObserver(_))
64 .Times(AnyNumber()); 64 .Times(AnyNumber());
65 EXPECT_CALL(*mock_network_library_, wifi_connected()) 65 EXPECT_CALL(*mock_network_library_, wifi_connected())
66 .Times(1) 66 .Times(1)
67 .WillRepeatedly(Return(false)); 67 .WillRepeatedly(Return(false));
68 EXPECT_CALL(*mock_network_library_, FindWifiDevice()) 68 EXPECT_CALL(*mock_network_library_, FindWifiDevice())
69 .Times(AnyNumber()); 69 .Times(AnyNumber());
70 EXPECT_CALL(*mock_network_library_, FindEthernetDevice()) 70 EXPECT_CALL(*mock_network_library_, FindEthernetDevice())
71 .Times(AnyNumber()); 71 .Times(AnyNumber());
72 EXPECT_CALL(*mock_network_library_, LoadOncNetworks(_, _, _, _, _)) 72 EXPECT_CALL(*mock_network_library_, LoadOncNetworks(_, _, _, _))
73 .WillRepeatedly(Return(true)); 73 .WillRepeatedly(Return(true));
74 74
75 cros_mock_->SetStatusAreaMocksExpectations(); 75 cros_mock_->SetStatusAreaMocksExpectations();
76 76
77 // Override these return values, but do not set specific expectation: 77 // Override these return values, but do not set specific expectation:
78 EXPECT_CALL(*mock_network_library_, wifi_available()) 78 EXPECT_CALL(*mock_network_library_, wifi_available())
79 .Times(AnyNumber()) 79 .Times(AnyNumber())
80 .WillRepeatedly((Return(true))); 80 .WillRepeatedly((Return(true)));
81 EXPECT_CALL(*mock_network_library_, wifi_enabled()) 81 EXPECT_CALL(*mock_network_library_, wifi_enabled())
82 .Times(AnyNumber()) 82 .Times(AnyNumber())
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // EXPECT_FALSE(actor_->IsConnecting()); 282 // EXPECT_FALSE(actor_->IsConnecting());
283 network_screen_->OnConnectionTimeout(); 283 network_screen_->OnConnectionTimeout();
284 284
285 // Close infobubble with error message - it makes the test stable. 285 // Close infobubble with error message - it makes the test stable.
286 // EXPECT_FALSE(actor_->IsContinueEnabled()); 286 // EXPECT_FALSE(actor_->IsContinueEnabled());
287 // EXPECT_FALSE(actor_->IsConnecting()); 287 // EXPECT_FALSE(actor_->IsConnecting());
288 // actor_->ClearErrors(); 288 // actor_->ClearErrors();
289 } 289 }
290 290
291 } // namespace chromeos 291 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_browsertest.cc ('k') | chrome/browser/chromeos/login/screen_locker_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698