OLD | NEW |
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 "chrome/browser/chromeos/login/supervised/supervised_user_test_base.h" | 5 #include "chrome/browser/chromeos/login/supervised/supervised_user_test_base.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "chrome/browser/supervised_user/legacy/supervised_user_registration_uti
lity_stub.h" | 29 #include "chrome/browser/supervised_user/legacy/supervised_user_registration_uti
lity_stub.h" |
30 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service.h" | 30 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service.h" |
31 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service_factory.h" | 31 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service_factory.h" |
32 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" | 32 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" |
33 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_fac
tory.h" | 33 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_fac
tory.h" |
34 #include "chrome/browser/supervised_user/supervised_user_constants.h" | 34 #include "chrome/browser/supervised_user/supervised_user_constants.h" |
35 #include "chromeos/cryptohome/mock_async_method_caller.h" | 35 #include "chromeos/cryptohome/mock_async_method_caller.h" |
36 #include "chromeos/cryptohome/mock_homedir_methods.h" | 36 #include "chromeos/cryptohome/mock_homedir_methods.h" |
37 #include "chromeos/login/auth/key.h" | 37 #include "chromeos/login/auth/key.h" |
38 #include "chromeos/login/auth/user_context.h" | 38 #include "chromeos/login/auth/user_context.h" |
| 39 #include "components/sync/api/fake_sync_change_processor.h" |
| 40 #include "components/sync/api/sync_change.h" |
| 41 #include "components/sync/api/sync_error_factory_mock.h" |
| 42 #include "components/sync/core/attachments/attachment_service_proxy_for_test.h" |
| 43 #include "components/sync/protocol/sync.pb.h" |
39 #include "content/public/browser/notification_service.h" | 44 #include "content/public/browser/notification_service.h" |
40 #include "content/public/test/browser_test_utils.h" | 45 #include "content/public/test/browser_test_utils.h" |
41 #include "content/public/test/test_utils.h" | 46 #include "content/public/test/test_utils.h" |
42 #include "sync/api/fake_sync_change_processor.h" | |
43 #include "sync/api/sync_change.h" | |
44 #include "sync/api/sync_error_factory_mock.h" | |
45 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test
.h" | |
46 #include "sync/protocol/sync.pb.h" | |
47 | 47 |
48 using testing::_; | 48 using testing::_; |
49 using base::StringPrintf; | 49 using base::StringPrintf; |
50 | 50 |
51 namespace chromeos { | 51 namespace chromeos { |
52 | 52 |
53 namespace { | 53 namespace { |
54 | 54 |
55 const char kCurrentPage[] = "$('supervised-user-creation').currentPage_"; | 55 const char kCurrentPage[] = "$('supervised-user-creation').currentPage_"; |
56 | 56 |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 JSEval(StringPrintf( | 440 JSEval(StringPrintf( |
441 "$('pod-row').pods[%d].querySelector('.remove-warning-button').click()", | 441 "$('pod-row').pods[%d].querySelector('.remove-warning-button').click()", |
442 user_index)); | 442 user_index)); |
443 | 443 |
444 // Make sure there is no supervised user in list. | 444 // Make sure there is no supervised user in list. |
445 ASSERT_EQ(original_user_count - 1, | 445 ASSERT_EQ(original_user_count - 1, |
446 user_manager::UserManager::Get()->GetUsers().size()); | 446 user_manager::UserManager::Get()->GetUsers().size()); |
447 } | 447 } |
448 | 448 |
449 } // namespace chromeos | 449 } // namespace chromeos |
OLD | NEW |