summaryrefslogtreecommitdiffstats
path: root/chrome/test/chromedriver/stub_chrome.cc
blob: 034d2f65cda7629e4bfbbe541b4fa22fbdfe13b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// 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/stub_chrome.h"
#include "chrome/test/chromedriver/status.h"
#include "chrome/test/chromedriver/web_view.h"

StubChrome::StubChrome() {}

StubChrome::~StubChrome() {}

std::string StubChrome::GetVersion() {
  return "";
}

Status StubChrome::GetWebViews(std::list<WebView*>* web_views) {
  return Status(kOk);
}

Status StubChrome::IsJavaScriptDialogOpen(bool* is_open) {
  return Status(kOk);
}

Status StubChrome::GetJavaScriptDialogMessage(std::string* message) {
  return Status(kOk);
}

Status StubChrome::HandleJavaScriptDialog(
    bool accept,
    const std::string& prompt_text) {
  return Status(kOk);
}

std::string StubChrome::GetOperatingSystemName() {
  return "";
}

Status StubChrome::Quit() {
  return Status(kOk);
}