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. 4 5 #include "chrome/test/chromedriver/chrome/chrome_android_impl.h" 6 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" 11 ChromeAndroidImpl(scoped_ptr<DevToolsHttpClient> client,ScopedVector<DevToolsEventListener> & devtools_event_listeners,scoped_ptr<PortReservation> port_reservation,scoped_ptr<Device> device)12ChromeAndroidImpl::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()) {} 21 ~ChromeAndroidImpl()22ChromeAndroidImpl::~ChromeAndroidImpl() {} 23 GetOperatingSystemName()24std::string ChromeAndroidImpl::GetOperatingSystemName() { 25 return "ANDROID"; 26 } 27 QuitImpl()28Status ChromeAndroidImpl::QuitImpl() { 29 return device_->TearDown(); 30 } 31 32