OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chromeos/dbus/gsm_sms_client.h" | 4 #include "chromeos/dbus/gsm_sms_client.h" |
5 | 5 |
6 #include <map> | 6 #include <map> |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/stringprintf.h" | |
16 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
| 16 #include "base/strings/stringprintf.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "chromeos/chromeos_switches.h" | 18 #include "chromeos/chromeos_switches.h" |
19 #include "chromeos/dbus/fake_gsm_sms_client.h" | 19 #include "chromeos/dbus/fake_gsm_sms_client.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_proxy.h" | 22 #include "dbus/object_proxy.h" |
23 #include "dbus/values_util.h" | 23 #include "dbus/values_util.h" |
24 #include "third_party/cros_system_api/dbus/service_constants.h" | 24 #include "third_party/cros_system_api/dbus/service_constants.h" |
25 | 25 |
26 namespace chromeos { | 26 namespace chromeos { |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); | 254 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); |
255 | 255 |
256 FakeGsmSMSClient* fake = new FakeGsmSMSClient(); | 256 FakeGsmSMSClient* fake = new FakeGsmSMSClient(); |
257 fake->set_sms_test_message_switch_present( | 257 fake->set_sms_test_message_switch_present( |
258 CommandLine::ForCurrentProcess()->HasSwitch( | 258 CommandLine::ForCurrentProcess()->HasSwitch( |
259 chromeos::switches::kSmsTestMessages)); | 259 chromeos::switches::kSmsTestMessages)); |
260 return fake; | 260 return fake; |
261 } | 261 } |
262 | 262 |
263 } // namespace chromeos | 263 } // namespace chromeos |
OLD | NEW |