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