blob: 390a68eb5e50d07cd0968f11c72b7311cfe92f4a [file] [log] [blame]
// 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() {}
Status StubChrome::GetAsDesktop(ChromeDesktopImpl** desktop) {
return Status(kUnknownError, "not supported");
}
const BrowserInfo* StubChrome::GetBrowserInfo() const {
return &browser_info_;
}
bool StubChrome::HasCrashedWebView() {
return false;
}
Status StubChrome::GetWebViewIdForFirstTab(std::string* web_view_id,
bool w3c_compliant) {
return Status(kOk);
}
Status StubChrome::GetWebViewIds(std::list<std::string>* web_view_ids,
bool w3c_compliant) {
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);
}
Status StubChrome::SetAcceptInsecureCerts() {
return Status(kOk);
}
std::string StubChrome::GetOperatingSystemName() {
return std::string();
}
bool StubChrome::IsMobileEmulationEnabled() const {
return false;
}
bool StubChrome::HasTouchScreen() const {
return false;
}
std::string StubChrome::page_load_strategy() const {
return std::string();
}
Status StubChrome::Quit() {
return Status(kOk);
}