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