| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 trust_anchors_ = trust_anchors; | 85 trust_anchors_ = trust_anchors; |
| 86 } | 86 } |
| 87 net::CertificateList trust_anchors_; | 87 net::CertificateList trust_anchors_; |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 DISALLOW_COPY_AND_ASSIGN(FakeWebTrustedCertsObserver); | 90 DISALLOW_COPY_AND_ASSIGN(FakeWebTrustedCertsObserver); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 class FakeNetworkDeviceHandler : public chromeos::FakeNetworkDeviceHandler { | 93 class FakeNetworkDeviceHandler : public chromeos::FakeNetworkDeviceHandler { |
| 94 public: | 94 public: |
| 95 FakeNetworkDeviceHandler() : allow_roaming_(false) {} | 95 FakeNetworkDeviceHandler() |
| 96 : allow_roaming_(false), mac_addr_randomization_(false) {} |
| 96 | 97 |
| 97 void SetCellularAllowRoaming(bool allow_roaming) override { | 98 void SetCellularAllowRoaming(bool allow_roaming) override { |
| 98 allow_roaming_ = allow_roaming; | 99 allow_roaming_ = allow_roaming; |
| 99 } | 100 } |
| 100 | 101 |
| 102 void SetMACAddressRandomizationEnabled(bool enabled) override { |
| 103 mac_addr_randomization_ = enabled; |
| 104 } |
| 105 |
| 101 bool allow_roaming_; | 106 bool allow_roaming_; |
| 107 bool mac_addr_randomization_; |
| 102 | 108 |
| 103 private: | 109 private: |
| 104 DISALLOW_COPY_AND_ASSIGN(FakeNetworkDeviceHandler); | 110 DISALLOW_COPY_AND_ASSIGN(FakeNetworkDeviceHandler); |
| 105 }; | 111 }; |
| 106 | 112 |
| 107 class FakeCertificateImporter : public chromeos::onc::CertificateImporter { | 113 class FakeCertificateImporter : public chromeos::onc::CertificateImporter { |
| 108 public: | 114 public: |
| 109 FakeCertificateImporter() | 115 FakeCertificateImporter() |
| 110 : expected_onc_source_(::onc::ONC_SOURCE_UNKNOWN), call_count_(0) {} | 116 : expected_onc_source_(::onc::ONC_SOURCE_UNKNOWN), call_count_(0) {} |
| 111 ~FakeCertificateImporter() override {} | 117 ~FakeCertificateImporter() override {} |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 EXPECT_EQ(ExpectedImportCertificatesCallCount(), | 674 EXPECT_EQ(ExpectedImportCertificatesCallCount(), |
| 669 certificate_importer_->GetAndResetImportCount()); | 675 certificate_importer_->GetAndResetImportCount()); |
| 670 } | 676 } |
| 671 | 677 |
| 672 INSTANTIATE_TEST_CASE_P(NetworkConfigurationUpdaterTestWithParamInstance, | 678 INSTANTIATE_TEST_CASE_P(NetworkConfigurationUpdaterTestWithParamInstance, |
| 673 NetworkConfigurationUpdaterTestWithParam, | 679 NetworkConfigurationUpdaterTestWithParam, |
| 674 testing::Values(key::kDeviceOpenNetworkConfiguration, | 680 testing::Values(key::kDeviceOpenNetworkConfiguration, |
| 675 key::kOpenNetworkConfiguration)); | 681 key::kOpenNetworkConfiguration)); |
| 676 | 682 |
| 677 } // namespace policy | 683 } // namespace policy |
| OLD | NEW |