1 // Copyright 2020 The PDFium Authors 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 TESTING_FXGC_UNITTEST_H_ 6 #define TESTING_FXGC_UNITTEST_H_ 7 8 #include "fxjs/gc/heap.h" 9 #include "testing/gtest/include/gtest/gtest.h" 10 11 class FXGCUnitTest : public ::testing::Test { 12 public: 13 FXGCUnitTest(); 14 ~FXGCUnitTest() override; 15 16 // testing::Test: 17 void SetUp() override; 18 void TearDown() override; 19 heap()20 cppgc::Heap* heap() const { return heap_.get(); } 21 void ForceGCAndPump(); 22 void Pump(); 23 24 private: 25 FXGCScopedHeap heap_; 26 }; 27 28 #endif // TESTING_FXGC_UNITTEST_H_ 29