This source file includes following definitions.
- GetAsDesktop
- GetVersion
- GetBuildNo
- HasCrashedWebView
- GetWebViewIds
- GetWebViewById
- CloseWebView
- ActivateWebView
- GetOperatingSystemName
- Quit
#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);
}