| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" | 28 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" |
| 29 #include "chrome/browser/chromeos/settings/cros_settings.h" | 29 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 30 #include "chrome/test/base/testing_browser_process.h" | 30 #include "chrome/test/base/testing_browser_process.h" |
| 31 #include "chrome/test/base/testing_profile.h" | 31 #include "chrome/test/base/testing_profile.h" |
| 32 #include "chrome/test/base/ui_test_utils.h" | 32 #include "chrome/test/base/ui_test_utils.h" |
| 33 #include "chromeos/chromeos_switches.h" | 33 #include "chromeos/chromeos_switches.h" |
| 34 #include "chromeos/dbus/fake_session_manager_client.h" | 34 #include "chromeos/dbus/fake_session_manager_client.h" |
| 35 #include "chromeos/login/auth/authenticator.h" | 35 #include "chromeos/login/auth/authenticator.h" |
| 36 #include "chromeos/login/auth/key.h" | 36 #include "chromeos/login/auth/key.h" |
| 37 #include "chromeos/login/auth/mock_authenticator.h" | 37 #include "chromeos/login/auth/mock_authenticator.h" |
| 38 #include "chromeos/login/auth/mock_authenticator.h" | |
| 39 #include "chromeos/login/auth/user_context.h" | 38 #include "chromeos/login/auth/user_context.h" |
| 40 #include "chromeos/settings/cros_settings_names.h" | 39 #include "chromeos/settings/cros_settings_names.h" |
| 41 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 40 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 42 #include "components/policy/core/common/cloud/cloud_policy_core.h" | 41 #include "components/policy/core/common/cloud/cloud_policy_core.h" |
| 43 #include "components/policy/core/common/cloud/cloud_policy_store.h" | 42 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
| 44 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" | 43 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" |
| 45 #include "components/policy/core/common/cloud/policy_builder.h" | 44 #include "components/policy/core/common/cloud/policy_builder.h" |
| 46 #include "components/user_manager/user.h" | 45 #include "components/user_manager/user.h" |
| 47 #include "components/user_manager/user_type.h" | 46 #include "components/user_manager/user_type.h" |
| 48 #include "content/public/test/mock_notification_observer.h" | 47 #include "content/public/test/mock_notification_observer.h" |
| 49 #include "content/public/test/test_utils.h" | 48 #include "content/public/test/test_utils.h" |
| 50 #include "google_apis/gaia/mock_url_fetcher_factory.h" | 49 #include "google_apis/gaia/mock_url_fetcher_factory.h" |
| 51 #include "grit/generated_resources.h" | |
| 52 #include "testing/gmock/include/gmock/gmock.h" | 50 #include "testing/gmock/include/gmock/gmock.h" |
| 53 #include "testing/gtest/include/gtest/gtest.h" | 51 #include "testing/gtest/include/gtest/gtest.h" |
| 54 #include "ui/base/l10n/l10n_util.h" | |
| 55 | 52 |
| 56 using ::testing::AnyNumber; | 53 using ::testing::AnyNumber; |
| 57 using ::testing::Invoke; | 54 using ::testing::Invoke; |
| 58 using ::testing::InvokeWithoutArgs; | 55 using ::testing::InvokeWithoutArgs; |
| 59 using ::testing::Return; | 56 using ::testing::Return; |
| 60 using ::testing::ReturnNull; | 57 using ::testing::ReturnNull; |
| 61 using ::testing::Sequence; | 58 using ::testing::Sequence; |
| 62 using ::testing::WithArg; | 59 using ::testing::WithArg; |
| 63 using ::testing::_; | 60 using ::testing::_; |
| 64 | 61 |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 // First run propagates public accounts and stores them in Local State. | 678 // First run propagates public accounts and stores them in Local State. |
| 682 } | 679 } |
| 683 | 680 |
| 684 // See http://crbug.com/393704; flaky. | 681 // See http://crbug.com/393704; flaky. |
| 685 IN_PROC_BROWSER_TEST_F(ExistingUserControllerPublicSessionTest, | 682 IN_PROC_BROWSER_TEST_F(ExistingUserControllerPublicSessionTest, |
| 686 DISABLED_TestLoadingPublicUsersFromLocalState) { | 683 DISABLED_TestLoadingPublicUsersFromLocalState) { |
| 687 // Second run loads list of public accounts from Local State. | 684 // Second run loads list of public accounts from Local State. |
| 688 } | 685 } |
| 689 | 686 |
| 690 } // namespace chromeos | 687 } // namespace chromeos |
| OLD | NEW |