- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / chromedriver / chrome / chrome_android_impl.cc
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
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()) {}
21
22 ChromeAndroidImpl::~ChromeAndroidImpl() {}
23
24 std::string ChromeAndroidImpl::GetOperatingSystemName() {
25   return "ANDROID";
26 }
27
28 Status ChromeAndroidImpl::QuitImpl() {
29   return device_->StopApp();
30 }
31