root/chrome/test/chromedriver/chrome/stub_chrome.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. GetAsDesktop
  2. GetVersion
  3. GetBuildNo
  4. HasCrashedWebView
  5. GetWebViewIds
  6. GetWebViewById
  7. CloseWebView
  8. ActivateWebView
  9. GetOperatingSystemName
  10. Quit

// 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() {}

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);
}

/* [<][>][^][v][top][bottom][index][help] */