OLD | NEW |
---|---|
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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 22 matching lines...) Expand all Loading... | |
33 #include "chrome/browser/chromeos/settings/cros_settings.h" | 33 #include "chrome/browser/chromeos/settings/cros_settings.h" |
34 #include "chrome/browser/notifications/notification_ui_manager.h" | 34 #include "chrome/browser/notifications/notification_ui_manager.h" |
35 #include "chrome/browser/ui/webui/chromeos/login/supervised_user_creation_screen _handler.h" | 35 #include "chrome/browser/ui/webui/chromeos/login/supervised_user_creation_screen _handler.h" |
36 #include "chrome/grit/generated_resources.h" | 36 #include "chrome/grit/generated_resources.h" |
37 #include "chrome/test/base/testing_browser_process.h" | 37 #include "chrome/test/base/testing_browser_process.h" |
38 #include "chromeos/chromeos_switches.h" | 38 #include "chromeos/chromeos_switches.h" |
39 #include "chromeos/dbus/fake_session_manager_client.h" | 39 #include "chromeos/dbus/fake_session_manager_client.h" |
40 #include "chromeos/login/auth/key.h" | 40 #include "chromeos/login/auth/key.h" |
41 #include "chromeos/login/auth/mock_url_fetchers.h" | 41 #include "chromeos/login/auth/mock_url_fetchers.h" |
42 #include "chromeos/login/auth/user_context.h" | 42 #include "chromeos/login/auth/user_context.h" |
43 #include "chromeos/login/user_names.h" | |
44 #include "chromeos/settings/cros_settings_names.h" | 43 #include "chromeos/settings/cros_settings_names.h" |
45 #include "chromeos/settings/cros_settings_provider.h" | 44 #include "chromeos/settings/cros_settings_provider.h" |
46 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 45 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
47 #include "components/policy/core/common/cloud/cloud_policy_core.h" | 46 #include "components/policy/core/common/cloud/cloud_policy_core.h" |
48 #include "components/policy/core/common/cloud/cloud_policy_store.h" | 47 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
49 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" | 48 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" |
50 #include "components/policy/core/common/cloud/policy_builder.h" | 49 #include "components/policy/core/common/cloud/policy_builder.h" |
51 #include "components/policy/proto/device_management_backend.pb.h" | 50 #include "components/policy/proto/device_management_backend.pb.h" |
52 #include "components/prefs/pref_service.h" | 51 #include "components/prefs/pref_service.h" |
53 #include "components/prefs/scoped_user_pref_update.h" | 52 #include "components/prefs/scoped_user_pref_update.h" |
54 #include "components/user_manager/user.h" | 53 #include "components/user_manager/user.h" |
55 #include "components/user_manager/user_manager.h" | 54 #include "components/user_manager/user_manager.h" |
55 #include "components/user_manager/user_names.h" | |
stevenjb
2016/10/26 22:31:08
Needed?
Alexander Alekseev
2016/10/27 04:18:35
Done.
| |
56 #include "components/user_manager/user_type.h" | 56 #include "components/user_manager/user_type.h" |
57 #include "content/public/test/mock_notification_observer.h" | 57 #include "content/public/test/mock_notification_observer.h" |
58 #include "content/public/test/test_utils.h" | 58 #include "content/public/test/test_utils.h" |
59 #include "google_apis/gaia/mock_url_fetcher_factory.h" | 59 #include "google_apis/gaia/mock_url_fetcher_factory.h" |
60 #include "testing/gmock/include/gmock/gmock.h" | 60 #include "testing/gmock/include/gmock/gmock.h" |
61 #include "testing/gtest/include/gtest/gtest.h" | 61 #include "testing/gtest/include/gtest/gtest.h" |
62 | 62 |
63 using ::testing::AnyNumber; | 63 using ::testing::AnyNumber; |
64 using ::testing::Invoke; | 64 using ::testing::Invoke; |
65 using ::testing::InvokeWithoutArgs; | 65 using ::testing::InvokeWithoutArgs; |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
758 PRE_TestLoadingPublicUsersFromLocalState) { | 758 PRE_TestLoadingPublicUsersFromLocalState) { |
759 // First run propagates public accounts and stores them in Local State. | 759 // First run propagates public accounts and stores them in Local State. |
760 } | 760 } |
761 | 761 |
762 IN_PROC_BROWSER_TEST_F(ExistingUserControllerPublicSessionTest, | 762 IN_PROC_BROWSER_TEST_F(ExistingUserControllerPublicSessionTest, |
763 TestLoadingPublicUsersFromLocalState) { | 763 TestLoadingPublicUsersFromLocalState) { |
764 // Second run loads list of public accounts from Local State. | 764 // Second run loads list of public accounts from Local State. |
765 } | 765 } |
766 | 766 |
767 } // namespace chromeos | 767 } // namespace chromeos |
OLD | NEW |