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

Side by Side Diff: components/wifi_sync/fake_wifi_config_delegate.h

Issue 849693002: wifi_sync: add FakeWifiConfigDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@submit-4.2-wifi-config-delegate
Patch Set: Created 5 years, 11 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/wifi_sync/BUILD.gn ('k') | components/wifi_sync/fake_wifi_config_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_WIFI_SYNC_FAKE_WIFI_CONFIG_DELEGATE_H_
6 #define COMPONENTS_WIFI_SYNC_FAKE_WIFI_CONFIG_DELEGATE_H_
7
8 #include "base/macros.h"
9 #include "components/wifi_sync/wifi_config_delegate.h"
10
11 namespace wifi_sync {
12
13 // Fake implementation of WifiConfigDelegate, which provides the
14 // ability to check how many times a WifiConfigDelegate method has
15 // been called.
16 class FakeWifiConfigDelegate : public WifiConfigDelegate {
17 public:
18 FakeWifiConfigDelegate();
19 virtual ~FakeWifiConfigDelegate() {}
20
21 // Implementation of WifiConfigDelegate.
22 void AddToLocalNetworks(const WifiCredential& network_credential) override;
23
24 // Returns the number of times the AddToLocalNetworks method has
25 // been called.
26 int GetAddCount() const { return add_count_; }
27
28 private:
29 // The number of times AddToLocalNetworks has been called on this fake.
30 int add_count_;
31
32 DISALLOW_COPY_AND_ASSIGN(FakeWifiConfigDelegate);
33 };
34
35 } // namespace wifi_sync
36
37 #endif // COMPONENTS_WIFI_SYNC_FAKE_WIFI_CONFIG_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/wifi_sync/BUILD.gn ('k') | components/wifi_sync/fake_wifi_config_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698