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

Side by Side Diff: chrome/browser/chromeos/login/supervised/supervised_user_password_browsertest.cc

Issue 436373002: Move non-API code out of sync/api/attachments/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply CR feedback. Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/supervised_user/supervised_user_registration_utility_st ub.h" 23 #include "chrome/browser/supervised_user/supervised_user_registration_utility_st ub.h"
24 #include "chrome/browser/supervised_user/supervised_user_shared_settings_service .h" 24 #include "chrome/browser/supervised_user/supervised_user_shared_settings_service .h"
25 #include "chrome/browser/supervised_user/supervised_user_shared_settings_service _factory.h" 25 #include "chrome/browser/supervised_user/supervised_user_shared_settings_service _factory.h"
26 #include "chrome/browser/supervised_user/supervised_user_sync_service.h" 26 #include "chrome/browser/supervised_user/supervised_user_sync_service.h"
27 #include "chrome/browser/supervised_user/supervised_user_sync_service_factory.h" 27 #include "chrome/browser/supervised_user/supervised_user_sync_service_factory.h"
28 #include "chromeos/cryptohome/mock_async_method_caller.h" 28 #include "chromeos/cryptohome/mock_async_method_caller.h"
29 #include "chromeos/cryptohome/mock_homedir_methods.h" 29 #include "chromeos/cryptohome/mock_homedir_methods.h"
30 #include "content/public/browser/notification_service.h" 30 #include "content/public/browser/notification_service.h"
31 #include "content/public/test/browser_test_utils.h" 31 #include "content/public/test/browser_test_utils.h"
32 #include "content/public/test/test_utils.h" 32 #include "content/public/test/test_utils.h"
33 #include "sync/api/attachments/attachment_service_proxy_for_test.h"
34 #include "sync/api/fake_sync_change_processor.h" 33 #include "sync/api/fake_sync_change_processor.h"
35 #include "sync/api/sync_change.h" 34 #include "sync/api/sync_change.h"
36 #include "sync/api/sync_error_factory_mock.h" 35 #include "sync/api/sync_error_factory_mock.h"
36 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test .h"
37 #include "sync/protocol/sync.pb.h" 37 #include "sync/protocol/sync.pb.h"
38 38
39 using testing::_; 39 using testing::_;
40 using chromeos::SupervisedUserTestBase; 40 using chromeos::SupervisedUserTestBase;
41 using chromeos::kTestSupervisedUserDisplayName; 41 using chromeos::kTestSupervisedUserDisplayName;
42 using chromeos::kTestManager; 42 using chromeos::kTestManager;
43 43
44 namespace chromeos { 44 namespace chromeos {
45 45
46 class SupervisedUserPasswordTest : public SupervisedUserTestBase { 46 class SupervisedUserPasswordTest : public SupervisedUserTestBase {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // should be attempted. 254 // should be attempted.
255 IN_PROC_BROWSER_TEST_F(SupervisedUserPasswordTest, 255 IN_PROC_BROWSER_TEST_F(SupervisedUserPasswordTest,
256 DISABLED_PasswordChangeUserAndManagerTest) { 256 DISABLED_PasswordChangeUserAndManagerTest) {
257 EXPECT_CALL(*mock_homedir_methods_, MountEx(_, _, _, _)).Times(1); 257 EXPECT_CALL(*mock_homedir_methods_, MountEx(_, _, _, _)).Times(1);
258 EXPECT_CALL(*mock_homedir_methods_, UpdateKeyEx(_, _, _, _, _)).Times(0); 258 EXPECT_CALL(*mock_homedir_methods_, UpdateKeyEx(_, _, _, _, _)).Times(0);
259 SigninAsSupervisedUser(false, 1, kTestSupervisedUserDisplayName); 259 SigninAsSupervisedUser(false, 1, kTestSupervisedUserDisplayName);
260 testing::Mock::VerifyAndClearExpectations(mock_homedir_methods_); 260 testing::Mock::VerifyAndClearExpectations(mock_homedir_methods_);
261 } 261 }
262 262
263 } // namespace chromeos 263 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698