Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Side by Side Diff: chromeos/network/mock_certificate_handler.h

Issue 16946002: Resolve certificate references in ONC by PEM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a unit test for the resolve function. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_MOCK_CERTIFICATE_HANDLER_H_
6 #define CHROMEOS_NETWORK_MOCK_CERTIFICATE_HANDLER_H_ 6 #define CHROMEOS_NETWORK_MOCK_CERTIFICATE_HANDLER_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/certificate_handler.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 14
15 class CHROMEOS_EXPORT MockCertificateHandler : public CertificateHandler { 15 class CHROMEOS_EXPORT MockCertificateHandler : public CertificateHandler {
16 public: 16 public:
17 MockCertificateHandler(); 17 MockCertificateHandler();
18 virtual ~MockCertificateHandler(); 18 virtual ~MockCertificateHandler();
19 MOCK_METHOD3(ImportCertificates, bool(const base::ListValue&, 19 MOCK_METHOD4(ImportCertificates, bool(const base::ListValue&,
20 onc::ONCSource, 20 onc::ONCSource,
21 net::CertificateList*)); 21 net::CertificateList*,
22 CertsByGUID*));
22 private: 23 private:
23 DISALLOW_COPY_AND_ASSIGN(MockCertificateHandler); 24 DISALLOW_COPY_AND_ASSIGN(MockCertificateHandler);
24 }; 25 };
25 26
26 } // chromeos 27 } // namespace chromeos
27 28
28 #endif // CHROMEOS_NETWORK_MOCK_CERTIFICATE_HANDLER_H_ 29 #endif // CHROMEOS_NETWORK_MOCK_CERTIFICATE_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/certificate_pattern_matcher.cc ('k') | chromeos/network/network_ui_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698