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

Side by Side Diff: chrome/test/chromedriver/stub_chrome.h

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/status.cc ('k') | chrome/test/chromedriver/stub_chrome.cc » ('j') | 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 #ifndef CHROME_TEST_CHROMEDRIVER_STUB_CHROME_H_
6 #define CHROME_TEST_CHROMEDRIVER_STUB_CHROME_H_
7
8 #include <list>
9 #include <string>
10
11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/test/chromedriver/chrome.h"
13
14 class Status;
15
16 class StubChrome : public Chrome {
17 public:
18 StubChrome();
19 virtual ~StubChrome();
20
21 // Overridden from Chrome:
22 virtual Status Load(const std::string& url) OVERRIDE;
23 virtual Status Reload() OVERRIDE;
24 virtual Status EvaluateScript(const std::string& frame,
25 const std::string& function,
26 scoped_ptr<base::Value>* result) OVERRIDE;
27 virtual Status CallFunction(const std::string& frame,
28 const std::string& function,
29 const base::ListValue& args,
30 scoped_ptr<base::Value>* result) OVERRIDE;
31 virtual Status GetFrameByFunction(const std::string& frame,
32 const std::string& function,
33 const base::ListValue& args,
34 std::string* out_frame) OVERRIDE;
35 virtual Status DispatchMouseEvents(
36 const std::list<MouseEvent>& events) OVERRIDE;
37 virtual Status DispatchKeyEvents(const std::list<KeyEvent>& events) OVERRIDE;
38 virtual Status Quit() OVERRIDE;
39 virtual Status WaitForPendingNavigations(
40 const std::string& frame_id) OVERRIDE;
41 virtual Status GetMainFrame(std::string* frame_id) OVERRIDE;
42 };
43
44 #endif // CHROME_TEST_CHROMEDRIVER_STUB_CHROME_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/status.cc ('k') | chrome/test/chromedriver/stub_chrome.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698