| 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 29 matching lines...) Expand all Loading... |
| 40 #include "chromeos/login/auth/mock_url_fetchers.h" | 40 #include "chromeos/login/auth/mock_url_fetchers.h" |
| 41 #include "chromeos/login/auth/user_context.h" | 41 #include "chromeos/login/auth/user_context.h" |
| 42 #include "chromeos/login/user_names.h" | 42 #include "chromeos/login/user_names.h" |
| 43 #include "chromeos/settings/cros_settings_names.h" | 43 #include "chromeos/settings/cros_settings_names.h" |
| 44 #include "chromeos/settings/cros_settings_provider.h" | 44 #include "chromeos/settings/cros_settings_provider.h" |
| 45 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 45 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 46 #include "components/policy/core/common/cloud/cloud_policy_core.h" | 46 #include "components/policy/core/common/cloud/cloud_policy_core.h" |
| 47 #include "components/policy/core/common/cloud/cloud_policy_store.h" | 47 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
| 48 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" | 48 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" |
| 49 #include "components/policy/core/common/cloud/policy_builder.h" | 49 #include "components/policy/core/common/cloud/policy_builder.h" |
| 50 #include "components/policy/proto/device_management_backend.pb.h" |
| 50 #include "components/prefs/pref_service.h" | 51 #include "components/prefs/pref_service.h" |
| 51 #include "components/prefs/scoped_user_pref_update.h" | 52 #include "components/prefs/scoped_user_pref_update.h" |
| 52 #include "components/user_manager/user.h" | 53 #include "components/user_manager/user.h" |
| 53 #include "components/user_manager/user_manager.h" | 54 #include "components/user_manager/user_manager.h" |
| 54 #include "components/user_manager/user_type.h" | 55 #include "components/user_manager/user_type.h" |
| 55 #include "content/public/test/mock_notification_observer.h" | 56 #include "content/public/test/mock_notification_observer.h" |
| 56 #include "content/public/test/test_utils.h" | 57 #include "content/public/test/test_utils.h" |
| 57 #include "google_apis/gaia/mock_url_fetcher_factory.h" | 58 #include "google_apis/gaia/mock_url_fetcher_factory.h" |
| 58 #include "policy/proto/device_management_backend.pb.h" | |
| 59 #include "testing/gmock/include/gmock/gmock.h" | 59 #include "testing/gmock/include/gmock/gmock.h" |
| 60 #include "testing/gtest/include/gtest/gtest.h" | 60 #include "testing/gtest/include/gtest/gtest.h" |
| 61 | 61 |
| 62 using ::testing::AnyNumber; | 62 using ::testing::AnyNumber; |
| 63 using ::testing::Invoke; | 63 using ::testing::Invoke; |
| 64 using ::testing::InvokeWithoutArgs; | 64 using ::testing::InvokeWithoutArgs; |
| 65 using ::testing::Return; | 65 using ::testing::Return; |
| 66 using ::testing::ReturnNull; | 66 using ::testing::ReturnNull; |
| 67 using ::testing::WithArg; | 67 using ::testing::WithArg; |
| 68 using ::testing::_; | 68 using ::testing::_; |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 PRE_TestLoadingPublicUsersFromLocalState) { | 752 PRE_TestLoadingPublicUsersFromLocalState) { |
| 753 // First run propagates public accounts and stores them in Local State. | 753 // First run propagates public accounts and stores them in Local State. |
| 754 } | 754 } |
| 755 | 755 |
| 756 IN_PROC_BROWSER_TEST_F(ExistingUserControllerPublicSessionTest, | 756 IN_PROC_BROWSER_TEST_F(ExistingUserControllerPublicSessionTest, |
| 757 TestLoadingPublicUsersFromLocalState) { | 757 TestLoadingPublicUsersFromLocalState) { |
| 758 // Second run loads list of public accounts from Local State. | 758 // Second run loads list of public accounts from Local State. |
| 759 } | 759 } |
| 760 | 760 |
| 761 } // namespace chromeos | 761 } // namespace chromeos |
| OLD | NEW |