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 | 4 |
5 #include "chrome/test/chromedriver/command_executor_impl.h" | 5 #include "chrome/test/chromedriver/command_executor_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/sys_info.h" | 12 #include "base/sys_info.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/test/chromedriver/alert_commands.h" | 14 #include "chrome/test/chromedriver/alert_commands.h" |
15 #include "chrome/test/chromedriver/chrome/adb_impl.h" | 15 #include "chrome/test/chromedriver/chrome/adb_impl.h" |
16 #include "chrome/test/chromedriver/chrome/device_manager.h" | 16 #include "chrome/test/chromedriver/chrome/device_manager.h" |
17 #include "chrome/test/chromedriver/chrome/status.h" | 17 #include "chrome/test/chromedriver/chrome/status.h" |
18 #include "chrome/test/chromedriver/chrome/version.h" | 18 #include "chrome/test/chromedriver/chrome/version.h" |
19 #include "chrome/test/chromedriver/chrome_launcher.h" | 19 #include "chrome/test/chromedriver/chrome_launcher.h" |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 base::SysInfo::OperatingSystemName().c_str(), | 297 base::SysInfo::OperatingSystemName().c_str(), |
298 base::SysInfo::OperatingSystemVersion().c_str(), | 298 base::SysInfo::OperatingSystemVersion().c_str(), |
299 base::SysInfo::OperatingSystemArchitecture().c_str())); | 299 base::SysInfo::OperatingSystemArchitecture().c_str())); |
300 scoped_ptr<base::DictionaryValue> error(new base::DictionaryValue()); | 300 scoped_ptr<base::DictionaryValue> error(new base::DictionaryValue()); |
301 error->SetString("message", status.message()); | 301 error->SetString("message", status.message()); |
302 value->reset(error.release()); | 302 value->reset(error.release()); |
303 } | 303 } |
304 if (!*value) | 304 if (!*value) |
305 value->reset(base::Value::CreateNullValue()); | 305 value->reset(base::Value::CreateNullValue()); |
306 } | 306 } |
OLD | NEW |