1 // Copyright (c) 2017 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_QUIC_PLATFORM_API_QUIC_TEST_H_
6 #define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
7 
8 #include "net/third_party/quiche/src/quic/platform/api/quic_logging.h"
9 #include "net/quic/platform/impl/quic_test_impl.h"
10 
11 using QuicFlagSaver = QuicFlagSaverImpl;
12 
13 // Defines the base classes to be used in QUIC tests.
14 using QuicTest = QuicTestImpl;
15 template <class T>
16 using QuicTestWithParam = QuicTestWithParamImpl<T>;
17 
18 // Class which needs to be instantiated in tests which use threads.
19 using ScopedEnvironmentForThreads = ScopedEnvironmentForThreadsImpl;
20 
21 #define QUIC_TEST_DISABLED_IN_CHROME(name) \
22   QUIC_TEST_DISABLED_IN_CHROME_IMPL(name)
23 
QuicGetTestMemoryCachePath()24 inline std::string QuicGetTestMemoryCachePath() {
25   return QuicGetTestMemoryCachePathImpl();
26 }
27 
28 #define EXPECT_QUIC_DEBUG_DEATH(condition, message) \
29   EXPECT_QUIC_DEBUG_DEATH_IMPL(condition, message)
30 
31 #define QUIC_SLOW_TEST(test) QUIC_SLOW_TEST_IMPL(test)
32 
33 #endif  // QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
34