Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef CHROMEOS_NETWORK_MOCK_CERTIFICATE_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_ONC_MOCK_CERTIFICATE_IMPORTER_H_ |
| 6 #define CHROMEOS_NETWORK_MOCK_CERTIFICATE_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_ONC_MOCK_CERTIFICATE_IMPORTER_H_ |
| 7 | 7 |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chromeos/chromeos_export.h" | 9 #include "chromeos/chromeos_export.h" |
| 10 #include "chromeos/network/certificate_handler.h" | 10 #include "chromeos/network/onc/onc_certificate_importer.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 namespace onc { | |
| 14 | 15 |
| 15 class CHROMEOS_EXPORT MockCertificateHandler : public CertificateHandler { | 16 class CHROMEOS_EXPORT MockCertificateImporter : public CertificateImporter { |
| 16 public: | 17 public: |
| 17 MockCertificateHandler(); | 18 MockCertificateImporter(); |
| 18 virtual ~MockCertificateHandler(); | 19 virtual ~MockCertificateImporter(); |
| 19 MOCK_METHOD3(ImportCertificates, bool(const base::ListValue&, | 20 MOCK_METHOD3(ImportCertificates, bool(const base::ListValue&, |
| 20 onc::ONCSource, | 21 onc::ONCSource, |
| 21 net::CertificateList*)); | 22 net::CertificateList*)); |
| 22 private: | 23 private: |
| 23 DISALLOW_COPY_AND_ASSIGN(MockCertificateHandler); | 24 DISALLOW_COPY_AND_ASSIGN(MockCertificateImporter); |
|
Mattias Nissler (ping if slow)
2013/07/24 11:25:40
#include "base/basictypes.h"
pneubeck (no reviews)
2013/07/25 08:03:23
Done.
| |
| 24 }; | 25 }; |
| 25 | 26 |
| 27 } // namespace onc | |
| 26 } // namespace chromeos | 28 } // namespace chromeos |
| 27 | 29 |
| 28 #endif // CHROMEOS_NETWORK_MOCK_CERTIFICATE_HANDLER_H_ | 30 #endif // CHROMEOS_NETWORK_ONC_MOCK_CERTIFICATE_IMPORTER_H_ |
| OLD | NEW |