Upstream version 11.39.250.0
[platform/framework/web/crosswalk.git] / src / chrome / test / chromedriver / chrome / stub_chrome.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/stub_chrome.h"
6 #include "chrome/test/chromedriver/chrome/status.h"
7 #include "chrome/test/chromedriver/chrome/web_view.h"
8
9 StubChrome::StubChrome() {}
10
11 StubChrome::~StubChrome() {}
12
13 ChromeDesktopImpl* StubChrome::GetAsDesktop() {
14   return NULL;
15 }
16
17 const BrowserInfo* StubChrome::GetBrowserInfo() {
18   return &browser_info_;
19 }
20
21 bool StubChrome::HasCrashedWebView() {
22   return false;
23 }
24
25 Status StubChrome::GetWebViewIds(std::list<std::string>* web_view_ids) {
26   return Status(kOk);
27 }
28
29 Status StubChrome::GetWebViewById(const std::string& id, WebView** web_view) {
30   return Status(kOk);
31 }
32
33 Status StubChrome::CloseWebView(const std::string& id) {
34   return Status(kOk);
35 }
36
37 Status StubChrome::ActivateWebView(const std::string& id) {
38   return Status(kOk);
39 }
40
41 std::string StubChrome::GetOperatingSystemName() {
42   return std::string();
43 }
44
45 bool StubChrome::IsMobileEmulationEnabled() const {
46   return false;
47 }
48
49 Status StubChrome::Quit() {
50   return Status(kOk);
51 }