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