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

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

Issue 22364005: Added stub portalled wifi network. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_SHILL_SERVICE_CLIENT_STUB_H_ 5 #ifndef CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_STUB_H_
6 #define CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_STUB_H_ 6 #define CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_STUB_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "chromeos/dbus/shill_service_client.h" 14 #include "chromeos/dbus/shill_service_client.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 // A stub implementation of ShillServiceClient. This works in close coordination 18 // A stub implementation of ShillServiceClient. This works in close coordination
19 // with ShillManagerClientStub and is not intended to be used independently. 19 // with ShillManagerClientStub and is not intended to be used independently.
20 class ShillServiceClientStub : public ShillServiceClient, 20 class ShillServiceClientStub : public ShillServiceClient,
21 public ShillServiceClient::TestInterface { 21 public ShillServiceClient::TestInterface {
22 public: 22 public:
23 static const char kStubPortalledWifiName[];
24 static const char kStubPortalledWifiPath[];
oshima 2013/08/06 21:00:02 Do you need to export both? I'd also recommend to
ygorshenin1 2013/08/07 09:00:30 Done.
25
23 ShillServiceClientStub(); 26 ShillServiceClientStub();
24 virtual ~ShillServiceClientStub(); 27 virtual ~ShillServiceClientStub();
25 28
26 // ShillServiceClient overrides. 29 // ShillServiceClient overrides.
27 virtual void AddPropertyChangedObserver( 30 virtual void AddPropertyChangedObserver(
28 const dbus::ObjectPath& service_path, 31 const dbus::ObjectPath& service_path,
29 ShillPropertyChangedObserver* observer) OVERRIDE; 32 ShillPropertyChangedObserver* observer) OVERRIDE;
30 virtual void RemovePropertyChangedObserver( 33 virtual void RemovePropertyChangedObserver(
31 const dbus::ObjectPath& service_path, 34 const dbus::ObjectPath& service_path,
32 ShillPropertyChangedObserver* observer) OVERRIDE; 35 ShillPropertyChangedObserver* observer) OVERRIDE;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Note: This should remain the last member so it'll be destroyed and 117 // Note: This should remain the last member so it'll be destroyed and
115 // invalidate its weak pointers before any other members are destroyed. 118 // invalidate its weak pointers before any other members are destroyed.
116 base::WeakPtrFactory<ShillServiceClientStub> weak_ptr_factory_; 119 base::WeakPtrFactory<ShillServiceClientStub> weak_ptr_factory_;
117 120
118 DISALLOW_COPY_AND_ASSIGN(ShillServiceClientStub); 121 DISALLOW_COPY_AND_ASSIGN(ShillServiceClientStub);
119 }; 122 };
120 123
121 } // namespace chromeos 124 } // namespace chromeos
122 125
123 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_STUB_H_ 126 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698