| // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "chrome/test/chromedriver/chrome/stub_chrome.h" |
| #include "chrome/test/chromedriver/chrome/status.h" |
| #include "chrome/test/chromedriver/chrome/web_view.h" |
| |
| StubChrome::StubChrome() {} |
| |
| StubChrome::~StubChrome() {} |
| |
| ChromeDesktopImpl* StubChrome::GetAsDesktop() { |
| return NULL; |
| } |
| |
| std::string StubChrome::GetVersion() { |
| return std::string(); |
| } |
| |
| int StubChrome::GetBuildNo() { |
| return 9999; |
| } |
| |
| bool StubChrome::HasCrashedWebView() { |
| return false; |
| } |
| |
| Status StubChrome::GetWebViewIds(std::list<std::string>* web_view_ids) { |
| return Status(kOk); |
| } |
| |
| Status StubChrome::GetWebViewById(const std::string& id, WebView** web_view) { |
| return Status(kOk); |
| } |
| |
| Status StubChrome::CloseWebView(const std::string& id) { |
| return Status(kOk); |
| } |
| |
| Status StubChrome::ActivateWebView(const std::string& id) { |
| return Status(kOk); |
| } |
| |
| std::string StubChrome::GetOperatingSystemName() { |
| return std::string(); |
| } |
| |
| Status StubChrome::Quit() { |
| return Status(kOk); |
| } |