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

Side by Side Diff: chrome/browser/chromeos/cros/mock_cert_library.h

Issue 14522013: Separate cert loading code from CertLibrary and move to src/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 7 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
(Empty)
1 // Copyright (c) 2012 The Chromium 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 CHROME_BROWSER_CHROMEOS_CROS_MOCK_CERT_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_CERT_LIBRARY_H_
7
8 #include "chrome/browser/chromeos/cros/cert_library.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10
11 namespace chromeos {
12
13 class MockCertLibrary : public CertLibrary {
14 public:
15 MockCertLibrary();
16 virtual ~MockCertLibrary();
17
18 MOCK_METHOD1(AddObserver, void(Observer* observer));
19 MOCK_METHOD1(RemoveObserver, void(Observer* observer));
20 MOCK_METHOD0(LoadKeyStore, void());
21 MOCK_CONST_METHOD0(CertificatesLoading, bool());
22 MOCK_CONST_METHOD0(CertificatesLoaded, bool());
23 MOCK_CONST_METHOD0(IsHardwareBacked, bool());
24 MOCK_CONST_METHOD0(GetTpmTokenName, const std::string&());
25 MOCK_CONST_METHOD0(GetCertificates, const CertList&());
26 MOCK_CONST_METHOD0(GetUserCertificates, const CertList&());
27 MOCK_CONST_METHOD0(GetServerCertificates, const CertList&());
28 MOCK_CONST_METHOD0(GetCACertificates, const CertList&());
29
30 private:
31 DISALLOW_COPY_AND_ASSIGN(MockCertLibrary);
32 };
33
34 } // namespace chromeos
35
36 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_CERT_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/cros_library.cc ('k') | chrome/browser/chromeos/cros/mock_cert_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698