K. Moon | 832a694 | 2022-10-31 20:11:31 +0000 | [diff] [blame] | 1 | // Copyright 2019 The PDFium Authors |
Tom Sepez | 2281853 | 2020-07-22 20:40:56 +0000 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Lei Zhang | 9c47be7 | 2020-09-11 19:43:34 +0000 | [diff] [blame] | 5 | #ifndef TESTING_XFA_TEST_ENVIRONMENT_H_ |
| 6 | #define TESTING_XFA_TEST_ENVIRONMENT_H_ |
Tom Sepez | 2281853 | 2020-07-22 20:40:56 +0000 | [diff] [blame] | 7 | |
Tom Sepez | 2281853 | 2020-07-22 20:40:56 +0000 | [diff] [blame] | 8 | #include "testing/gtest/include/gtest/gtest.h" |
| 9 | |
| 10 | #ifndef PDF_ENABLE_XFA |
| 11 | #error "XFA must be enabled" |
| 12 | #endif |
| 13 | |
Tom Sepez | 2281853 | 2020-07-22 20:40:56 +0000 | [diff] [blame] | 14 | class XFATestEnvironment : public testing::Environment { |
| 15 | public: |
| 16 | XFATestEnvironment(); |
| 17 | ~XFATestEnvironment(); |
| 18 | |
| 19 | // testing::TestEnvironment: |
| 20 | void SetUp() override; |
| 21 | void TearDown() override; |
Tom Sepez | 2281853 | 2020-07-22 20:40:56 +0000 | [diff] [blame] | 22 | }; |
| 23 | |
Lei Zhang | 9c47be7 | 2020-09-11 19:43:34 +0000 | [diff] [blame] | 24 | #endif // TESTING_XFA_TEST_ENVIRONMENT_H_ |