OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/chromeos/login/user.h" | 12 #include "chrome/browser/chromeos/login/user.h" |
13 #include "chrome/browser/chromeos/policy/user_network_configuration_updater.h" | 13 #include "chrome/browser/chromeos/policy/user_network_configuration_updater.h" |
14 #include "chrome/browser/policy/policy_service_impl.h" | |
15 #include "chromeos/network/mock_managed_network_configuration_handler.h" | 14 #include "chromeos/network/mock_managed_network_configuration_handler.h" |
16 #include "chromeos/network/onc/mock_certificate_importer.h" | 15 #include "chromeos/network/onc/mock_certificate_importer.h" |
17 #include "chromeos/network/onc/onc_test_utils.h" | 16 #include "chromeos/network/onc/onc_test_utils.h" |
18 #include "chromeos/network/onc/onc_utils.h" | 17 #include "chromeos/network/onc/onc_utils.h" |
19 #include "components/onc/onc_constants.h" | 18 #include "components/onc/onc_constants.h" |
20 #include "components/policy/core/common/external_data_fetcher.h" | 19 #include "components/policy/core/common/external_data_fetcher.h" |
21 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 20 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
22 #include "components/policy/core/common/policy_map.h" | 21 #include "components/policy/core/common/policy_map.h" |
| 22 #include "components/policy/core/common/policy_service_impl.h" |
23 #include "content/public/test/test_browser_thread_bundle.h" | 23 #include "content/public/test/test_browser_thread_bundle.h" |
24 #include "content/public/test/test_utils.h" | 24 #include "content/public/test/test_utils.h" |
25 #include "net/base/test_data_directory.h" | 25 #include "net/base/test_data_directory.h" |
26 #include "net/cert/x509_certificate.h" | 26 #include "net/cert/x509_certificate.h" |
27 #include "net/test/cert_test_util.h" | 27 #include "net/test/cert_test_util.h" |
28 #include "policy/policy_constants.h" | 28 #include "policy/policy_constants.h" |
29 #include "testing/gmock/include/gmock/gmock.h" | 29 #include "testing/gmock/include/gmock/gmock.h" |
30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
31 | 31 |
32 using testing::AnyNumber; | 32 using testing::AnyNumber; |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 policy.Erase(GetParam()); | 464 policy.Erase(GetParam()); |
465 UpdateProviderPolicy(policy); | 465 UpdateProviderPolicy(policy); |
466 } | 466 } |
467 | 467 |
468 INSTANTIATE_TEST_CASE_P(NetworkConfigurationUpdaterTestWithParamInstance, | 468 INSTANTIATE_TEST_CASE_P(NetworkConfigurationUpdaterTestWithParamInstance, |
469 NetworkConfigurationUpdaterTestWithParam, | 469 NetworkConfigurationUpdaterTestWithParam, |
470 testing::Values(key::kDeviceOpenNetworkConfiguration, | 470 testing::Values(key::kDeviceOpenNetworkConfiguration, |
471 key::kOpenNetworkConfiguration)); | 471 key::kOpenNetworkConfiguration)); |
472 | 472 |
473 } // namespace policy | 473 } // namespace policy |
OLD | NEW |