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

Side by Side Diff: chromeos/dbus/fake_nfc_device_client.h

Issue 628883002: replace OVERRIDE and FINAL with override and final in chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « chromeos/dbus/fake_nfc_adapter_client.h ('k') | chromeos/dbus/fake_nfc_manager_client.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROMEOS_DBUS_FAKE_NFC_DEVICE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_NFC_DEVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_NFC_DEVICE_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_NFC_DEVICE_CLIENT_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "chromeos/chromeos_export.h" 10 #include "chromeos/chromeos_export.h"
(...skipping 12 matching lines...) Expand all
23 // The default simulation timeout interval. 23 // The default simulation timeout interval.
24 static const int kDefaultSimulationTimeoutMilliseconds; 24 static const int kDefaultSimulationTimeoutMilliseconds;
25 25
26 // Properties structure that provides fake behavior for D-Bus calls. 26 // Properties structure that provides fake behavior for D-Bus calls.
27 struct Properties : public NfcDeviceClient::Properties { 27 struct Properties : public NfcDeviceClient::Properties {
28 explicit Properties(const PropertyChangedCallback& callback); 28 explicit Properties(const PropertyChangedCallback& callback);
29 virtual ~Properties(); 29 virtual ~Properties();
30 30
31 // dbus::PropertySet overrides. 31 // dbus::PropertySet overrides.
32 virtual void Get(dbus::PropertyBase* property, 32 virtual void Get(dbus::PropertyBase* property,
33 dbus::PropertySet::GetCallback callback) OVERRIDE; 33 dbus::PropertySet::GetCallback callback) override;
34 virtual void GetAll() OVERRIDE; 34 virtual void GetAll() override;
35 virtual void Set(dbus::PropertyBase* property, 35 virtual void Set(dbus::PropertyBase* property,
36 dbus::PropertySet::SetCallback callback) OVERRIDE; 36 dbus::PropertySet::SetCallback callback) override;
37 }; 37 };
38 38
39 FakeNfcDeviceClient(); 39 FakeNfcDeviceClient();
40 virtual ~FakeNfcDeviceClient(); 40 virtual ~FakeNfcDeviceClient();
41 41
42 // NfcDeviceClient overrides. 42 // NfcDeviceClient overrides.
43 virtual void Init(dbus::Bus* bus) OVERRIDE; 43 virtual void Init(dbus::Bus* bus) override;
44 virtual void AddObserver(Observer* observer) OVERRIDE; 44 virtual void AddObserver(Observer* observer) override;
45 virtual void RemoveObserver(Observer* observer) OVERRIDE; 45 virtual void RemoveObserver(Observer* observer) override;
46 virtual std::vector<dbus::ObjectPath> GetDevicesForAdapter( 46 virtual std::vector<dbus::ObjectPath> GetDevicesForAdapter(
47 const dbus::ObjectPath& adapter_path) OVERRIDE; 47 const dbus::ObjectPath& adapter_path) override;
48 virtual Properties* GetProperties( 48 virtual Properties* GetProperties(
49 const dbus::ObjectPath& object_path) OVERRIDE; 49 const dbus::ObjectPath& object_path) override;
50 virtual void Push( 50 virtual void Push(
51 const dbus::ObjectPath& object_path, 51 const dbus::ObjectPath& object_path,
52 const base::DictionaryValue& attributes, 52 const base::DictionaryValue& attributes,
53 const base::Closure& callback, 53 const base::Closure& callback,
54 const nfc_client_helpers::ErrorCallback& error_callback) OVERRIDE; 54 const nfc_client_helpers::ErrorCallback& error_callback) override;
55 55
56 // Simulates the appearance of a device. The fake device will show up after 56 // Simulates the appearance of a device. The fake device will show up after
57 // exactly |visibility_delay| milliseconds, and will simulate pushing a single 57 // exactly |visibility_delay| milliseconds, and will simulate pushing a single
58 // record to the local fake adapter after exactly |record_push_delay| 58 // record to the local fake adapter after exactly |record_push_delay|
59 // milliseconds after the the device appears. |visibility_delay| must have a 59 // milliseconds after the the device appears. |visibility_delay| must have a
60 // non-negative value. |record_push_delay| CAN be negative: if it has a 60 // non-negative value. |record_push_delay| CAN be negative: if it has a
61 // negative value, the record push step will not be simulated. The 61 // negative value, the record push step will not be simulated. The
62 // side-effects of this method occur asynchronously, i.e. even with arguments 62 // side-effects of this method occur asynchronously, i.e. even with arguments
63 // with value 0, the pairing won't take place until after this method has 63 // with value 0, the pairing won't take place until after this method has
64 // returned. 64 // returned.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // If non-negative, the device will disappear this many milliseconds after 124 // If non-negative, the device will disappear this many milliseconds after
125 // its records have been exposed. 125 // its records have been exposed.
126 int simulation_timeout_; 126 int simulation_timeout_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(FakeNfcDeviceClient); 128 DISALLOW_COPY_AND_ASSIGN(FakeNfcDeviceClient);
129 }; 129 };
130 130
131 } // namespace chromeos 131 } // namespace chromeos
132 132
133 #endif // CHROMEOS_DBUS_FAKE_NFC_DEVICE_CLIENT_H_ 133 #endif // CHROMEOS_DBUS_FAKE_NFC_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_nfc_adapter_client.h ('k') | chromeos/dbus/fake_nfc_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698