#include "net/spdy/alps_decoder.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "net/base/features.h"
#include "net/base/hex_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
AcceptChOriginValuePair;
ElementsAre;
IsEmpty;
Pair;
namespace net {
namespace {
TEST(AlpsDecoderTest, EmptyInput) { … }
TEST(AlpsDecoderTest, EmptyAcceptChFrame) { … }
TEST(AlpsDecoderTest, EmptySettingsFrame) { … }
TEST(AlpsDecoderTest, ParseSettingsAndAcceptChFrames) { … }
TEST(AlpsDecoderTest, ParseLargeAcceptChFrame) { … }
TEST(AlpsDecoderTest, DisableAlpsParsing) { … }
TEST(AlpsDecoderTest, DisableAlpsClientHintParsing) { … }
TEST(AlpsDecoderTest, IncompleteFrame) { … }
TEST(AlpsDecoderTest, TwoSettingsFrames) { … }
TEST(AlpsDecoderTest, AcceptChOnInvalidStream) { … }
TEST(AlpsDecoderTest, AcceptChWithInvalidFlags) { … }
TEST(AlpsDecoderTest, SettingsOnInvalidStream) { … }
TEST(AlpsDecoderTest, SettingsAck) { … }
TEST(AlpsDecoderTest, SettingsWithInvalidFlags) { … }
TEST(AlpsDecoderTest, ForbiddenFrame) { … }
TEST(AlpsDecoderTest, UnknownFrame) { … }
class AlpsDecoderTestWithFeature : public ::testing::TestWithParam<bool> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(AlpsDecoderTestWithFeature, MalformedAcceptChFrame) { … }
}
}