1 /**
2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 #include "string_table_base_test.h"
17
18 namespace panda::mem::test {
19 class StringTableGCTest : public StringTableBaseTest {
20 public:
StringTableGCTest()21 StringTableGCTest() {}
22 };
23
TEST_F(StringTableGCTest,StringTableStwGCTest)24 TEST_F(StringTableGCTest, StringTableStwGCTest)
25 {
26 SetupRuntime("stw");
27 RunStringTableTests();
28 }
29
TEST_F(StringTableGCTest,StringTableGenGCTest)30 TEST_F(StringTableGCTest, StringTableGenGCTest)
31 {
32 SetupRuntime("gen-gc");
33 RunStringTableTests();
34 }
35
TEST_F(StringTableGCTest,StringTableG1GCTest)36 TEST_F(StringTableGCTest, StringTableG1GCTest)
37 {
38 SetupRuntime("g1-gc");
39 RunStringTableTests();
40 }
41 } // namespace panda::mem::test