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