stub_chrome.cc revision cedac228d2dd51db4b79ea1e72c7f249408ee061
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 46bool StubChrome::IsMobileEmulationEnabled() const { 47 return false; 48} 49 50Status StubChrome::Quit() { 51 return Status(kOk); 52} 53