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

Side by Side Diff: chrome/browser/chromeos/login/screens/update_screen_browsertest.cc

Issue 14192017: Extract certificate policy application from NetworkLibrary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 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) 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.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/login/screens/mock_error_screen.h" 8 #include "chrome/browser/chromeos/login/screens/mock_error_screen.h"
9 #include "chrome/browser/chromeos/login/screens/mock_screen_observer.h" 9 #include "chrome/browser/chromeos/login/screens/mock_screen_observer.h"
10 #include "chrome/browser/chromeos/login/screens/update_screen.h" 10 #include "chrome/browser/chromeos/login/screens/update_screen.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 .Times(1); 84 .Times(1);
85 EXPECT_CALL(*mock_network_library_, AddNetworkManagerObserver(_)) 85 EXPECT_CALL(*mock_network_library_, AddNetworkManagerObserver(_))
86 .Times(1) 86 .Times(1)
87 .RetiresOnSaturation(); 87 .RetiresOnSaturation();
88 EXPECT_CALL(*mock_network_library_, AddUserActionObserver(_)) 88 EXPECT_CALL(*mock_network_library_, AddUserActionObserver(_))
89 .Times(AnyNumber()); 89 .Times(AnyNumber());
90 EXPECT_CALL(*mock_network_library_, FindWifiDevice()) 90 EXPECT_CALL(*mock_network_library_, FindWifiDevice())
91 .Times(AnyNumber()); 91 .Times(AnyNumber());
92 EXPECT_CALL(*mock_network_library_, FindEthernetDevice()) 92 EXPECT_CALL(*mock_network_library_, FindEthernetDevice())
93 .Times(AnyNumber()); 93 .Times(AnyNumber());
94 EXPECT_CALL(*mock_network_library_, LoadOncNetworks(_, _, _, _)) 94 EXPECT_CALL(*mock_network_library_, LoadOncNetworks(_, _))
95 .WillRepeatedly(Return(true)); 95 .Times(AnyNumber());
96 EXPECT_CALL(*mock_network_library_, 96 EXPECT_CALL(*mock_network_library_,
97 FindNetworkByPath(kDefaultEthernetServicePath)) 97 FindNetworkByPath(kDefaultEthernetServicePath))
98 .Times(AnyNumber()) 98 .Times(AnyNumber())
99 .WillRepeatedly((Return(stub_ethernet_.get()))); 99 .WillRepeatedly((Return(stub_ethernet_.get())));
100 EXPECT_CALL(*mock_network_library_, 100 EXPECT_CALL(*mock_network_library_,
101 FindNetworkByPath(kDefaultWifiServicePath)) 101 FindNetworkByPath(kDefaultWifiServicePath))
102 .Times(AnyNumber()) 102 .Times(AnyNumber())
103 .WillRepeatedly((Return(stub_wifi_.get()))); 103 .WillRepeatedly((Return(stub_wifi_.get())));
104 104
105 // Setup network portal detector to return online state for both 105 // Setup network portal detector to return online state for both
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // Update screen will show message about proxy error because wifie 375 // Update screen will show message about proxy error because wifie
376 // network requires proxy authentication. 376 // network requires proxy authentication.
377 EXPECT_CALL(*mock_error_screen_actor_, 377 EXPECT_CALL(*mock_error_screen_actor_,
378 SetErrorState(ErrorScreen::ERROR_STATE_PROXY, std::string())) 378 SetErrorState(ErrorScreen::ERROR_STATE_PROXY, std::string()))
379 .Times(1); 379 .Times(1);
380 380
381 NotifyPortalDetectionCompleted(); 381 NotifyPortalDetectionCompleted();
382 } 382 }
383 383
384 } // namespace chromeos 384 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698