1 // Copyright (c) 2019 The Chromium Authors. All rights reserved. 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 QUICHE_COMMON_PLATFORM_API_QUICHE_TEST_H_ 6 #define QUICHE_COMMON_PLATFORM_API_QUICHE_TEST_H_ 7 8 #include "quiche_platform_impl/quiche_test_impl.h" 9 10 namespace quiche::test { 11 12 using QuicheTest = QuicheTestImpl; 13 14 template <class T> 15 using QuicheTestWithParam = QuicheTestWithParamImpl<T>; 16 17 using QuicheFlagSaver = QuicheFlagSaverImpl; 18 19 // Class which needs to be instantiated in tests which use threads. 20 using ScopedEnvironmentForThreads = ScopedEnvironmentForThreadsImpl; 21 QuicheGetTestMemoryCachePath()22inline std::string QuicheGetTestMemoryCachePath() { 23 return QuicheGetTestMemoryCachePathImpl(); 24 } 25 26 // Returns the path to quiche/common directory where the test data could be 27 // located. QuicheGetCommonSourcePath()28inline std::string QuicheGetCommonSourcePath() { 29 return QuicheGetCommonSourcePathImpl(); 30 } 31 32 } // namespace quiche::test 33 34 #define EXPECT_QUICHE_DEBUG_DEATH(condition, message) \ 35 EXPECT_QUICHE_DEBUG_DEATH_IMPL(condition, message) 36 37 #define QUICHE_TEST_DISABLED_IN_CHROME(name) \ 38 QUICHE_TEST_DISABLED_IN_CHROME_IMPL(name) 39 40 #define QUICHE_SLOW_TEST(test) QUICHE_SLOW_TEST_IMPL(test) 41 42 #endif // QUICHE_COMMON_PLATFORM_API_QUICHE_TEST_H_ 43