blob: 4f6a418e133994c433056e65435f50e081772741 [file] [log] [blame]
// Copyright (c) 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_QUIC_PLATFORM_IMPL_QUIC_TEST_IMPL_H_
#define NET_QUIC_PLATFORM_IMPL_QUIC_TEST_IMPL_H_
#include "testing/gmock/include/gmock/gmock.h" // IWYU pragma: export
#include "testing/gtest/include/gtest/gtest.h" // IWYU pragma: export
// When constructed, checks that all QUIC flags have their correct default
// values and when destructed, restores those values.
class QuicFlagSaverImpl {
public:
QuicFlagSaverImpl();
~QuicFlagSaverImpl();
};
class QuicTestImpl : public ::testing::Test {
private:
QuicFlagSaverImpl flags_; // Save/restore all QUIC flag values.
};
template <class T>
class QuicTestWithParamImpl : public ::testing::TestWithParam<T> {
private:
QuicFlagSaverImpl flags_; // Save/restore all QUIC flag values.
};
#endif // NET_QUIC_PLATFORM_IMPL_QUIC_TEST_IMPL_H_