| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_TEST_UI_NPAPI_TEST_HELPER_H_ | 5 #ifndef CHROME_TEST_UI_NPAPI_TEST_HELPER_H_ |
| 6 #define CHROME_TEST_UI_NPAPI_TEST_HELPER_H_ | 6 #define CHROME_TEST_UI_NPAPI_TEST_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/test/ui/ui_test.h" | 9 #include "chrome/test/ui/ui_test.h" |
| 10 | 10 |
| 11 namespace npapi_test { | 11 namespace npapi_test { |
| 12 extern const char kTestCompleteCookie[]; | 12 extern const char kTestCompleteCookie[]; |
| 13 extern const char kTestCompleteSuccess[]; | 13 extern const char kTestCompleteSuccess[]; |
| 14 } // namespace npapi_test. | 14 } // namespace npapi_test. |
| 15 | 15 |
| 16 // Base class for NPAPI tests. It provides common functionality between | 16 // Base class for NPAPI tests. It provides common functionality between |
| 17 // regular NPAPI plugins and pepper NPAPI plugins. | 17 // regular NPAPI plugins and pepper NPAPI plugins. |
| 18 class NPAPITesterBase : public UITest { | 18 class NPAPITesterBase : public UITest { |
| 19 protected: | 19 protected: |
| 20 explicit NPAPITesterBase(); | 20 explicit NPAPITesterBase(); |
| 21 virtual void SetUp(); | 21 virtual void SetUp() OVERRIDE; |
| 22 | 22 |
| 23 FilePath GetPluginsDirectory(); | 23 FilePath GetPluginsDirectory(); |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 // Helper class for NPAPI plugin UI tests, which need the browser window | 26 // Helper class for NPAPI plugin UI tests, which need the browser window |
| 27 // to be visible. | 27 // to be visible. |
| 28 class NPAPIVisiblePluginTester : public NPAPITesterBase { | 28 class NPAPIVisiblePluginTester : public NPAPITesterBase { |
| 29 protected: | 29 protected: |
| 30 virtual void SetUp(); | 30 virtual void SetUp() OVERRIDE; |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 // Helper class for NPAPI plugin UI tests which use incognito mode. | 33 // Helper class for NPAPI plugin UI tests which use incognito mode. |
| 34 class NPAPIIncognitoTester : public NPAPITesterBase { | 34 class NPAPIIncognitoTester : public NPAPITesterBase { |
| 35 protected: | 35 protected: |
| 36 virtual void SetUp(); | 36 virtual void SetUp() OVERRIDE; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 #endif // CHROME_TEST_UI_NPAPI_TEST_HELPER_H_ | 39 #endif // CHROME_TEST_UI_NPAPI_TEST_HELPER_H_ |
| OLD | NEW |