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

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

Issue 10868076: Only import certificates with Web trust from ONC if the user is managed and matches the enterprise … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaesd Created 8 years, 3 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/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" 9 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h"
10 #include "chrome/browser/chromeos/cros/cros_mock.h" 10 #include "chrome/browser/chromeos/cros/cros_mock.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 EXPECT_CALL(*mock_dbus_thread_manager, GetSystemBus()) 127 EXPECT_CALL(*mock_dbus_thread_manager, GetSystemBus())
128 .WillRepeatedly(Return(reinterpret_cast<dbus::Bus*>(NULL))); 128 .WillRepeatedly(Return(reinterpret_cast<dbus::Bus*>(NULL)));
129 DBusThreadManager::InitializeForTesting(mock_dbus_thread_manager); 129 DBusThreadManager::InitializeForTesting(mock_dbus_thread_manager);
130 CrosInProcessBrowserTest::SetUpInProcessBrowserTestFixture(); 130 CrosInProcessBrowserTest::SetUpInProcessBrowserTestFixture();
131 cros_mock_->InitStatusAreaMocks(); 131 cros_mock_->InitStatusAreaMocks();
132 cros_mock_->SetStatusAreaMocksExpectations(); 132 cros_mock_->SetStatusAreaMocksExpectations();
133 133
134 mock_network_library_ = cros_mock_->mock_network_library(); 134 mock_network_library_ = cros_mock_->mock_network_library();
135 EXPECT_CALL(*mock_network_library_, AddUserActionObserver(_)) 135 EXPECT_CALL(*mock_network_library_, AddUserActionObserver(_))
136 .Times(AnyNumber()); 136 .Times(AnyNumber());
137 EXPECT_CALL(*mock_network_library_, LoadOncNetworks(_, _, _, _)) 137 EXPECT_CALL(*mock_network_library_, LoadOncNetworks(_, _, _, _, _))
138 .WillRepeatedly(Return(true)); 138 .WillRepeatedly(Return(true));
139 139
140 MockSessionManagerClient* mock_session_manager_client = 140 MockSessionManagerClient* mock_session_manager_client =
141 mock_dbus_thread_manager->mock_session_manager_client(); 141 mock_dbus_thread_manager->mock_session_manager_client();
142 EXPECT_CALL(*mock_session_manager_client, EmitLoginPromptReady()) 142 EXPECT_CALL(*mock_session_manager_client, EmitLoginPromptReady())
143 .Times(1); 143 .Times(1);
144 EXPECT_CALL(*mock_session_manager_client, RetrieveDevicePolicy(_)) 144 EXPECT_CALL(*mock_session_manager_client, RetrieveDevicePolicy(_))
145 .Times(AnyNumber()); 145 .Times(AnyNumber());
146 146
147 mock_login_utils_ = new MockLoginUtils(); 147 mock_login_utils_ = new MockLoginUtils();
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 EXPECT_CALL(*mock_login_display_host_.get(), OnCompleteLogin()) 311 EXPECT_CALL(*mock_login_display_host_.get(), OnCompleteLogin())
312 .Times(1); 312 .Times(1);
313 EXPECT_CALL(*mock_user_manager_.user_manager(), IsCurrentUserNew()) 313 EXPECT_CALL(*mock_user_manager_.user_manager(), IsCurrentUserNew())
314 .Times(AnyNumber()) 314 .Times(AnyNumber())
315 .WillRepeatedly(Return(true)); 315 .WillRepeatedly(Return(true));
316 existing_user_controller()->CompleteLogin(kNewUsername, kPassword); 316 existing_user_controller()->CompleteLogin(kNewUsername, kPassword);
317 content::RunAllPendingInMessageLoop(); 317 content::RunAllPendingInMessageLoop();
318 } 318 }
319 319
320 } // namespace chromeos 320 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/onc_network_parser.cc ('k') | chrome/browser/chromeos/login/login_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698