stub_chrome.cc revision 68043e1e95eeb07d5cae7aca370b26518b0867d6
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 13Chrome::Type StubChrome::GetType() { 14 return DESKTOP; 15} 16 17std::string StubChrome::GetVersion() { 18 return std::string(); 19} 20 21int StubChrome::GetBuildNo() { 22 return 9999; 23} 24 25bool StubChrome::HasCrashedWebView() { 26 return false; 27} 28 29Status StubChrome::GetWebViewIds(std::list<std::string>* web_view_ids) { 30 return Status(kOk); 31} 32 33Status StubChrome::GetWebViewById(const std::string& id, WebView** web_view) { 34 return Status(kOk); 35} 36 37Status StubChrome::CloseWebView(const std::string& id) { 38 return Status(kOk); 39} 40 41Status StubChrome::ActivateWebView(const std::string& id) { 42 return Status(kOk); 43} 44 45Status StubChrome::GetAutomationExtension(AutomationExtension** extension) { 46 return Status(kOk); 47} 48 49std::string StubChrome::GetOperatingSystemName() { 50 return std::string(); 51} 52 53Status StubChrome::Quit() { 54 return Status(kOk); 55} 56