OLD | NEW |
(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 } |
OLD | NEW |