| 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 #ifndef CHROME_TEST_CHROMEDRIVER_STUB_CHROME_H_ | |
| 6 #define CHROME_TEST_CHROMEDRIVER_STUB_CHROME_H_ | |
| 7 | |
| 8 #include <list> | |
| 9 | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "chrome/test/chromedriver/chrome.h" | |
| 12 | |
| 13 class Status; | |
| 14 class WebView; | |
| 15 | |
| 16 class StubChrome : public Chrome { | |
| 17 public: | |
| 18 StubChrome(); | |
| 19 virtual ~StubChrome(); | |
| 20 | |
| 21 // Overridden from Chrome: | |
| 22 virtual std::string GetVersion() OVERRIDE; | |
| 23 virtual Status GetWebViews(std::list<WebView*>* web_views) OVERRIDE; | |
| 24 virtual Status IsJavaScriptDialogOpen(bool* is_open) OVERRIDE; | |
| 25 virtual Status GetJavaScriptDialogMessage(std::string* message) OVERRIDE; | |
| 26 virtual Status HandleJavaScriptDialog( | |
| 27 bool accept, | |
| 28 const std::string& prompt_text) OVERRIDE; | |
| 29 virtual std::string GetOperatingSystemName() OVERRIDE; | |
| 30 virtual Status Quit() OVERRIDE; | |
| 31 }; | |
| 32 | |
| 33 #endif // CHROME_TEST_CHROMEDRIVER_STUB_CHROME_H_ | |
| OLD | NEW |