stub_chrome.cc revision 1e9bf3e0803691d0a228da41fc608347b6db4340
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 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 45std::string StubChrome::GetOperatingSystemName() { 46 return std::string(); 47} 48 49Status StubChrome::Quit() { 50 return Status(kOk); 51} 52