OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_PROXIMITY_AUTH_MOCK_CRYPTAUTH_CLIENT_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_MOCK_CRYPTAUTH_CLIENT_H |
6 #define COMPONENTS_PROXIMITY_AUTH_MOCK_CRYPTAUTH_CLIENT_H | 6 #define COMPONENTS_PROXIMITY_AUTH_MOCK_CRYPTAUTH_CLIENT_H |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "components/proximity_auth/cryptauth/cryptauth_client.h" | 10 #include "components/proximity_auth/cryptauth/cryptauth_client.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 scoped_ptr<CryptAuthClient> CreateInstance() override; | 66 scoped_ptr<CryptAuthClient> CreateInstance() override; |
67 | 67 |
68 void AddObserver(Observer* observer); | 68 void AddObserver(Observer* observer); |
69 void RemoveObserver(Observer* observer); | 69 void RemoveObserver(Observer* observer); |
70 | 70 |
71 private: | 71 private: |
72 // Whether to create StrictMocks or NiceMocks. | 72 // Whether to create StrictMocks or NiceMocks. |
73 bool is_strict_; | 73 bool is_strict_; |
74 | 74 |
75 // Observers of the factory. | 75 // Observers of the factory. |
76 ObserverList<Observer> observer_list_; | 76 base::ObserverList<Observer> observer_list_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(MockCryptAuthClientFactory); | 78 DISALLOW_COPY_AND_ASSIGN(MockCryptAuthClientFactory); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace proximity_auth | 81 } // namespace proximity_auth |
82 | 82 |
83 #endif // COMPONENTS_PROXIMITY_AUTH_MOCK_CRYPTAUTH_CLIENT_H | 83 #endif // COMPONENTS_PROXIMITY_AUTH_MOCK_CRYPTAUTH_CLIENT_H |
OLD | NEW |