| Index: net/quic/core/quic_error_codes_test.cc
|
| diff --git a/net/quic/core/quic_error_codes_test.cc b/net/quic/core/quic_error_codes_test.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0023e934c295a421ecfba564dfcd7ffd14c3bcef
|
| --- /dev/null
|
| +++ b/net/quic/core/quic_error_codes_test.cc
|
| @@ -0,0 +1,30 @@
|
| +// Copyright (c) 2013 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.
|
| +
|
| +#include "net/quic/core/quic_error_codes.h"
|
| +
|
| +#include "base/strings/string_piece.h"
|
| +#include "net/quic/core/quic_flags.h"
|
| +#include "testing/gmock/include/gmock/gmock.h"
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| +
|
| +using base::StringPiece;
|
| +using std::string;
|
| +
|
| +namespace net {
|
| +namespace test {
|
| +namespace {
|
| +
|
| +TEST(QuicUtilsTest, QuicRstStreamErrorCodeToString) {
|
| + EXPECT_STREQ("QUIC_BAD_APPLICATION_PAYLOAD",
|
| + QuicRstStreamErrorCodeToString(QUIC_BAD_APPLICATION_PAYLOAD));
|
| +}
|
| +
|
| +TEST(QuicUtilsTest, QuicErrorCodeToString) {
|
| + EXPECT_STREQ("QUIC_NO_ERROR", QuicErrorCodeToString(QUIC_NO_ERROR));
|
| +}
|
| +
|
| +} // namespace
|
| +} // namespace test
|
| +} // namespace net
|
|
|