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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/chromedriver/status.cc ('k') | chrome/test/chromedriver/stub_chrome.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/stub_chrome.h
diff --git a/chrome/test/chromedriver/stub_chrome.h b/chrome/test/chromedriver/stub_chrome.h
new file mode 100644
index 0000000000000000000000000000000000000000..ed57acac45b95f9848192fb0a70abe73bcde2160
--- /dev/null
+++ b/chrome/test/chromedriver/stub_chrome.h
@@ -0,0 +1,44 @@
+// 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.
+
+#ifndef CHROME_TEST_CHROMEDRIVER_STUB_CHROME_H_
+#define CHROME_TEST_CHROMEDRIVER_STUB_CHROME_H_
+
+#include <list>
+#include <string>
+
+#include "base/memory/scoped_ptr.h"
+#include "chrome/test/chromedriver/chrome.h"
+
+class Status;
+
+class StubChrome : public Chrome {
+ public:
+ StubChrome();
+ virtual ~StubChrome();
+
+ // Overridden from Chrome:
+ virtual Status Load(const std::string& url) OVERRIDE;
+ virtual Status Reload() OVERRIDE;
+ virtual Status EvaluateScript(const std::string& frame,
+ const std::string& function,
+ scoped_ptr<base::Value>* result) OVERRIDE;
+ virtual Status CallFunction(const std::string& frame,
+ const std::string& function,
+ const base::ListValue& args,
+ scoped_ptr<base::Value>* result) OVERRIDE;
+ virtual Status GetFrameByFunction(const std::string& frame,
+ const std::string& function,
+ const base::ListValue& args,
+ std::string* out_frame) OVERRIDE;
+ virtual Status DispatchMouseEvents(
+ const std::list<MouseEvent>& events) OVERRIDE;
+ virtual Status DispatchKeyEvents(const std::list<KeyEvent>& events) OVERRIDE;
+ virtual Status Quit() OVERRIDE;
+ virtual Status WaitForPendingNavigations(
+ const std::string& frame_id) OVERRIDE;
+ virtual Status GetMainFrame(std::string* frame_id) OVERRIDE;
+};
+
+#endif // CHROME_TEST_CHROMEDRIVER_STUB_CHROME_H_
« 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