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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/chromedriver/stub_chrome.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/test/chromedriver/stub_chrome.h"
6 #include "chrome/test/chromedriver/status.h"
7
8 StubChrome::StubChrome() {}
9
10 StubChrome::~StubChrome() {}
11
12 Status StubChrome::Load(const std::string& url) {
13 return Status(kOk);
14 }
15
16 Status StubChrome::Reload() {
17 return Status(kOk);
18 }
19
20 Status StubChrome::EvaluateScript(const std::string& frame,
21 const std::string& function,
22 scoped_ptr<base::Value>* result) {
23 return Status(kOk);
24 }
25
26 Status StubChrome::CallFunction(const std::string& frame,
27 const std::string& function,
28 const base::ListValue& args,
29 scoped_ptr<base::Value>* result) {
30 return Status(kOk);
31 }
32
33 Status StubChrome::GetFrameByFunction(const std::string& frame,
34 const std::string& function,
35 const base::ListValue& args,
36 std::string* out_frame) {
37 return Status(kOk);
38 }
39
40 Status StubChrome::DispatchMouseEvents(
41 const std::list<MouseEvent>& events) {
42 return Status(kOk);
43 }
44
45 Status StubChrome::DispatchKeyEvents(
46 const std::list<KeyEvent>& events) {
47 return Status(kOk);
48 }
49
50 Status StubChrome::Quit() {
51 return Status(kOk);
52 }
53
54 Status StubChrome::WaitForPendingNavigations(
55 const std::string& frame_id) {
56 return Status(kOk);
57 }
58
59 Status StubChrome::GetMainFrame(
60 std::string* frame_id) {
61 return Status(kOk);
62 }
OLDNEW
« 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