OLD | NEW |
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 #include "chrome/test/chromedriver/chrome/chrome_android_impl.h" | 5 #include "chrome/test/chromedriver/chrome/chrome_android_impl.h" |
6 | 6 |
7 #include "chrome/test/chromedriver/chrome/device_manager.h" | 7 #include "chrome/test/chromedriver/chrome/device_manager.h" |
8 #include "chrome/test/chromedriver/chrome/devtools_http_client.h" | 8 #include "chrome/test/chromedriver/chrome/devtools_http_client.h" |
9 #include "chrome/test/chromedriver/chrome/status.h" | 9 #include "chrome/test/chromedriver/chrome/status.h" |
10 | 10 |
11 ChromeAndroidImpl::ChromeAndroidImpl( | 11 ChromeAndroidImpl::ChromeAndroidImpl( |
12 scoped_ptr<DevToolsHttpClient> client, | 12 scoped_ptr<DevToolsHttpClient> client, |
13 ScopedVector<DevToolsEventListener>& devtools_event_listeners, | 13 ScopedVector<DevToolsEventListener>& devtools_event_listeners, |
14 scoped_ptr<Device> device, | 14 scoped_ptr<Device> device) |
15 Log* log) | 15 : ChromeImpl(client.Pass(), devtools_event_listeners), |
16 : ChromeImpl(client.Pass(), devtools_event_listeners, log), | |
17 device_(device.Pass()) {} | 16 device_(device.Pass()) {} |
18 | 17 |
19 ChromeAndroidImpl::~ChromeAndroidImpl() {} | 18 ChromeAndroidImpl::~ChromeAndroidImpl() {} |
20 | 19 |
21 Chrome::Type ChromeAndroidImpl::GetType() { | 20 Chrome::Type ChromeAndroidImpl::GetType() { |
22 return ANDROID; | 21 return ANDROID; |
23 } | 22 } |
24 | 23 |
25 std::string ChromeAndroidImpl::GetOperatingSystemName() { | 24 std::string ChromeAndroidImpl::GetOperatingSystemName() { |
26 return "ANDROID"; | 25 return "ANDROID"; |
27 } | 26 } |
28 | 27 |
29 Status ChromeAndroidImpl::Quit() { | 28 Status ChromeAndroidImpl::Quit() { |
30 return device_->StopApp(); | 29 return device_->StopApp(); |
31 } | 30 } |
32 | 31 |
OLD | NEW |