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

Side by Side Diff: chromeos/dbus/fake_shill_service_client.cc

Issue 67923002: Fixes for -Wunused-function on Linux, Android and ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for realz Created 7 years, 1 month 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
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | chromeos/ime/ibus_daemon_controller.cc » ('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 #include "chromeos/dbus/fake_shill_service_client.h" 5 #include "chromeos/dbus/fake_shill_service_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chromeos/chromeos_switches.h" 14 #include "chromeos/chromeos_switches.h"
15 #include "chromeos/dbus/dbus_thread_manager.h" 15 #include "chromeos/dbus/dbus_thread_manager.h"
16 #include "chromeos/dbus/shill_manager_client.h" 16 #include "chromeos/dbus/shill_manager_client.h"
17 #include "chromeos/dbus/shill_property_changed_observer.h" 17 #include "chromeos/dbus/shill_property_changed_observer.h"
18 #include "chromeos/dbus/shill_stub_helper.h" 18 #include "chromeos/dbus/shill_stub_helper.h"
19 #include "chromeos/network/shill_property_util.h" 19 #include "chromeos/network/shill_property_util.h"
20 #include "dbus/bus.h" 20 #include "dbus/bus.h"
21 #include "dbus/message.h" 21 #include "dbus/message.h"
22 #include "dbus/object_path.h" 22 #include "dbus/object_path.h"
23 #include "third_party/cros_system_api/dbus/service_constants.h" 23 #include "third_party/cros_system_api/dbus/service_constants.h"
24 24
25 namespace chromeos { 25 namespace chromeos {
26 26
27 namespace { 27 namespace {
28 28
29 void ErrorFunction(const std::string& error_name,
30 const std::string& error_message) {
31 LOG(ERROR) << "Shill Error: " << error_name << " : " << error_message;
32 }
33
34 void PassStubListValue(const ShillServiceClient::ListValueCallback& callback, 29 void PassStubListValue(const ShillServiceClient::ListValueCallback& callback,
35 base::ListValue* value) { 30 base::ListValue* value) {
36 callback.Run(*value); 31 callback.Run(*value);
37 } 32 }
38 33
39 void PassStubServiceProperties( 34 void PassStubServiceProperties(
40 const ShillServiceClient::DictionaryValueCallback& callback, 35 const ShillServiceClient::DictionaryValueCallback& callback,
41 DBusMethodCallStatus call_status, 36 DBusMethodCallStatus call_status,
42 const base::DictionaryValue* properties) { 37 const base::DictionaryValue* properties) {
43 callback.Run(call_status, *properties); 38 callback.Run(call_status, *properties);
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 base::StringValue(shill::kErrorBadPassphrase))); 555 base::StringValue(shill::kErrorBadPassphrase)));
561 } else { 556 } else {
562 // Set Online. 557 // Set Online.
563 SetServiceProperty(service_path, 558 SetServiceProperty(service_path,
564 shill::kStateProperty, 559 shill::kStateProperty,
565 base::StringValue(shill::kStateOnline)); 560 base::StringValue(shill::kStateOnline));
566 } 561 }
567 } 562 }
568 563
569 } // namespace chromeos 564 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | chromeos/ime/ibus_daemon_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698