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
3 // found in the LICENSE file.
5 #include "chrome/test/chromedriver/chrome/chrome_android_impl.h"
7 #include "chrome/test/chromedriver/chrome/device_manager.h"
8 #include "chrome/test/chromedriver/chrome/devtools_http_client.h"
9 #include "chrome/test/chromedriver/chrome/status.h"
10 #include "chrome/test/chromedriver/net/port_server.h"
12 ChromeAndroidImpl::ChromeAndroidImpl(
13 scoped_ptr<DevToolsHttpClient> client,
14 ScopedVector<DevToolsEventListener>& devtools_event_listeners,
15 scoped_ptr<PortReservation> port_reservation,
16 scoped_ptr<Device> device)
17 : ChromeImpl(client.Pass(),
18 devtools_event_listeners,
19 port_reservation.Pass()),
20 device_(device.Pass()) {}
22 ChromeAndroidImpl::~ChromeAndroidImpl() {}
24 std::string ChromeAndroidImpl::GetOperatingSystemName() {
28 Status ChromeAndroidImpl::QuitImpl() {
29 return device_->StopApp();