| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/test/chromedriver/chrome/stub_chrome.h" | 5 #include "chrome/test/chromedriver/chrome/stub_chrome.h" |
| 6 #include "chrome/test/chromedriver/chrome/status.h" | 6 #include "chrome/test/chromedriver/chrome/status.h" |
| 7 #include "chrome/test/chromedriver/chrome/web_view.h" | 7 #include "chrome/test/chromedriver/chrome/web_view.h" |
| 8 | 8 |
| 9 StubChrome::StubChrome() {} | 9 StubChrome::StubChrome() {} |
| 10 | 10 |
| 11 StubChrome::~StubChrome() {} | 11 StubChrome::~StubChrome() {} |
| 12 | 12 |
| 13 std::string StubChrome::GetVersion() { | 13 std::string StubChrome::GetVersion() { |
| 14 return ""; | 14 return ""; |
| 15 } | 15 } |
| 16 | 16 |
| 17 Status StubChrome::GetWebViews(std::list<WebView*>* web_views) { | 17 Status StubChrome::GetWebViewIds(std::list<std::string>* web_view_ids) { |
| 18 return Status(kOk); | 18 return Status(kOk); |
| 19 } | 19 } |
| 20 | 20 |
| 21 Status StubChrome::GetWebViewById(const std::string& id, WebView** web_view) { |
| 22 return Status(kOk); |
| 23 } |
| 24 |
| 21 Status StubChrome::IsJavaScriptDialogOpen(bool* is_open) { | 25 Status StubChrome::IsJavaScriptDialogOpen(bool* is_open) { |
| 22 return Status(kOk); | 26 return Status(kOk); |
| 23 } | 27 } |
| 24 | 28 |
| 25 Status StubChrome::GetJavaScriptDialogMessage(std::string* message) { | 29 Status StubChrome::GetJavaScriptDialogMessage(std::string* message) { |
| 26 return Status(kOk); | 30 return Status(kOk); |
| 27 } | 31 } |
| 28 | 32 |
| 29 Status StubChrome::HandleJavaScriptDialog( | 33 Status StubChrome::HandleJavaScriptDialog( |
| 30 bool accept, | 34 bool accept, |
| 31 const std::string& prompt_text) { | 35 const std::string& prompt_text) { |
| 32 return Status(kOk); | 36 return Status(kOk); |
| 33 } | 37 } |
| 34 | 38 |
| 35 std::string StubChrome::GetOperatingSystemName() { | 39 std::string StubChrome::GetOperatingSystemName() { |
| 36 return ""; | 40 return ""; |
| 37 } | 41 } |
| 38 | 42 |
| 39 Status StubChrome::Quit() { | 43 Status StubChrome::Quit() { |
| 40 return Status(kOk); | 44 return Status(kOk); |
| 41 } | 45 } |
| OLD | NEW |