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

Side by Side Diff: components/proximity_auth/cryptauth/mock_cryptauth_client.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
« no previous file with comments | « components/proximity_auth/connection.h ('k') | components/proximity_auth/logging/log_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/proximity_auth/connection.h ('k') | components/proximity_auth/logging/log_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698