Darin Petkov | 3c5e4dc | 2012-04-02 14:44:27 +0200 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef SHILL_MOCK_NSS_ |
| 6 | #define SHILL_MOCK_NSS_ |
| 7 | |
| 8 | #include <gmock/gmock.h> |
| 9 | |
| 10 | #include "shill/nss.h" |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class MockNSS : public NSS { |
| 15 | public: |
| 16 | MockNSS(); |
| 17 | virtual ~MockNSS(); |
| 18 | |
| 19 | MOCK_METHOD2(GetPEMCertfile, FilePath(const std::string &nickname, |
| 20 | const std::vector<char> &id)); |
| 21 | MOCK_METHOD2(GetDERCertfile, FilePath(const std::string &nickname, |
| 22 | const std::vector<char> &id)); |
| 23 | |
| 24 | private: |
| 25 | DISALLOW_COPY_AND_ASSIGN(MockNSS); |
| 26 | }; |
| 27 | |
| 28 | } // namespace shill |
| 29 | |
| 30 | #endif // SHILL_MOCK_NSS_ |