| 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() | 95 FakeNetworkDeviceHandler() : allow_roaming_(false) {} |
| 96 : allow_roaming_(false), mac_addr_randomization_(false) {} | |
| 97 | 96 |
| 98 void SetCellularAllowRoaming(bool allow_roaming) override { | 97 void SetCellularAllowRoaming(bool allow_roaming) override { |
| 99 allow_roaming_ = allow_roaming; | 98 allow_roaming_ = allow_roaming; |
| 100 } | 99 } |
| 101 | 100 |
| 102 void SetMACAddressRandomizationEnabled(bool enabled) override { | |
| 103 mac_addr_randomization_ = enabled; | |
| 104 } | |
| 105 | |
| 106 bool allow_roaming_; | 101 bool allow_roaming_; |
| 107 bool mac_addr_randomization_; | |
| 108 | 102 |
| 109 private: | 103 private: |
| 110 DISALLOW_COPY_AND_ASSIGN(FakeNetworkDeviceHandler); | 104 DISALLOW_COPY_AND_ASSIGN(FakeNetworkDeviceHandler); |
| 111 }; | 105 }; |
| 112 | 106 |
| 113 class FakeCertificateImporter : public chromeos::onc::CertificateImporter { | 107 class FakeCertificateImporter : public chromeos::onc::CertificateImporter { |
| 114 public: | 108 public: |
| 115 FakeCertificateImporter() | 109 FakeCertificateImporter() |
| 116 : expected_onc_source_(::onc::ONC_SOURCE_UNKNOWN), call_count_(0) {} | 110 : expected_onc_source_(::onc::ONC_SOURCE_UNKNOWN), call_count_(0) {} |
| 117 ~FakeCertificateImporter() override {} | 111 ~FakeCertificateImporter() override {} |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 EXPECT_EQ(ExpectedImportCertificatesCallCount(), | 668 EXPECT_EQ(ExpectedImportCertificatesCallCount(), |
| 675 certificate_importer_->GetAndResetImportCount()); | 669 certificate_importer_->GetAndResetImportCount()); |
| 676 } | 670 } |
| 677 | 671 |
| 678 INSTANTIATE_TEST_CASE_P(NetworkConfigurationUpdaterTestWithParamInstance, | 672 INSTANTIATE_TEST_CASE_P(NetworkConfigurationUpdaterTestWithParamInstance, |
| 679 NetworkConfigurationUpdaterTestWithParam, | 673 NetworkConfigurationUpdaterTestWithParam, |
| 680 testing::Values(key::kDeviceOpenNetworkConfiguration, | 674 testing::Values(key::kDeviceOpenNetworkConfiguration, |
| 681 key::kOpenNetworkConfiguration)); | 675 key::kOpenNetworkConfiguration)); |
| 682 | 676 |
| 683 } // namespace policy | 677 } // namespace policy |
| OLD | NEW |