Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2378)

Unified Diff: chrome/test/chromedriver/stub_chrome.cc

Issue 12226026: [ChromeDriver] Select the main frame if a non-existant child frame is targeted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/chromedriver/stub_chrome.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/stub_chrome.cc
diff --git a/chrome/test/chromedriver/stub_chrome.cc b/chrome/test/chromedriver/stub_chrome.cc
new file mode 100644
index 0000000000000000000000000000000000000000..93a853424cda314b6c34a7cce9b078112dde8da8
--- /dev/null
+++ b/chrome/test/chromedriver/stub_chrome.cc
@@ -0,0 +1,62 @@
+// 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"
+
+StubChrome::StubChrome() {}
+
+StubChrome::~StubChrome() {}
+
+Status StubChrome::Load(const std::string& url) {
+ return Status(kOk);
+}
+
+Status StubChrome::Reload() {
+ return Status(kOk);
+}
+
+Status StubChrome::EvaluateScript(const std::string& frame,
+ const std::string& function,
+ scoped_ptr<base::Value>* result) {
+ return Status(kOk);
+}
+
+Status StubChrome::CallFunction(const std::string& frame,
+ const std::string& function,
+ const base::ListValue& args,
+ scoped_ptr<base::Value>* result) {
+ return Status(kOk);
+}
+
+Status StubChrome::GetFrameByFunction(const std::string& frame,
+ const std::string& function,
+ const base::ListValue& args,
+ std::string* out_frame) {
+ return Status(kOk);
+}
+
+Status StubChrome::DispatchMouseEvents(
+ const std::list<MouseEvent>& events) {
+ return Status(kOk);
+}
+
+Status StubChrome::DispatchKeyEvents(
+ const std::list<KeyEvent>& events) {
+ return Status(kOk);
+}
+
+Status StubChrome::Quit() {
+ return Status(kOk);
+}
+
+Status StubChrome::WaitForPendingNavigations(
+ const std::string& frame_id) {
+ return Status(kOk);
+}
+
+Status StubChrome::GetMainFrame(
+ std::string* frame_id) {
+ return Status(kOk);
+}
« no previous file with comments | « chrome/test/chromedriver/stub_chrome.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698