blob: 247bfec503ebc8bf1cee914b115d4ee6f57f081a [file] [log] [blame]
danzhc3be2d42019-04-25 07:47:41 -07001// 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
vasilvvddf82272023-10-16 23:08:22 -07008#include "quiche_platform_impl/quiche_test_impl.h" // IWYU pragma: export
danzhc3be2d42019-04-25 07:47:41 -07009
bnc7ddea9b2022-05-18 08:36:18 -070010namespace quiche::test {
11
12using QuicheTest = QuicheTestImpl;
QUICHE teamf3c80c92020-02-12 09:47:55 -080013
dmcardle8f7df532020-01-07 13:28:57 -080014template <class T>
bnc7ddea9b2022-05-18 08:36:18 -070015using QuicheTestWithParam = QuicheTestWithParamImpl<T>;
dmcardle8f7df532020-01-07 13:28:57 -080016
bncc697d462022-03-08 08:59:39 -080017using QuicheFlagSaver = QuicheFlagSaverImpl;
18
danzhe6476d92024-01-19 08:16:40 -080019using QuicheScopedDisableExitOnDFatal = QuicheScopedDisableExitOnDFatalImpl;
20
bncc697d462022-03-08 08:59:39 -080021// Class which needs to be instantiated in tests which use threads.
22using ScopedEnvironmentForThreads = ScopedEnvironmentForThreadsImpl;
23
24inline std::string QuicheGetTestMemoryCachePath() {
25 return QuicheGetTestMemoryCachePathImpl();
26}
27
vasilvv90615e32021-07-02 08:12:43 -070028// Returns the path to quiche/common directory where the test data could be
29// located.
30inline std::string QuicheGetCommonSourcePath() {
31 return QuicheGetCommonSourcePathImpl();
32}
33
bnc7ddea9b2022-05-18 08:36:18 -070034} // namespace quiche::test
vasilvv90615e32021-07-02 08:12:43 -070035
bnc08fc2ae2021-04-27 14:57:51 -070036#define EXPECT_QUICHE_DEBUG_DEATH(condition, message) \
37 EXPECT_QUICHE_DEBUG_DEATH_IMPL(condition, message)
38
awillia6fed9642024-02-26 14:45:31 -080039#define EXPECT_QUICHE_DEATH(condition, message) \
40 EXPECT_QUICHE_DEATH_IMPL(condition, message)
41
bncc697d462022-03-08 08:59:39 -080042#define QUICHE_TEST_DISABLED_IN_CHROME(name) \
43 QUICHE_TEST_DISABLED_IN_CHROME_IMPL(name)
44
45#define QUICHE_SLOW_TEST(test) QUICHE_SLOW_TEST_IMPL(test)
46
danzhc3be2d42019-04-25 07:47:41 -070047#endif // QUICHE_COMMON_PLATFORM_API_QUICHE_TEST_H_