Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: net/quic/core/quic_error_codes_test.cc

Issue 2848203002: Add a platform implementation of QuicTest and QuicTestWithParam (Closed)
Patch Set: net/quic/platform/impl/quic_test_impl.cc Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_data_writer_test.cc ('k') | net/quic/core/quic_flow_controller_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/core/quic_error_codes.h" 5 #include "net/quic/core/quic_error_codes.h"
6 6
7 #include "testing/gmock/include/gmock/gmock.h" 7 #include "net/quic/platform/api/quic_test.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9 8
10 namespace net { 9 namespace net {
11 namespace test { 10 namespace test {
12 namespace { 11 namespace {
13 12
14 TEST(QuicUtilsTest, QuicRstStreamErrorCodeToString) { 13 class QuicErrorCodesTest : public QuicTest {};
14
15 TEST_F(QuicErrorCodesTest, QuicRstStreamErrorCodeToString) {
15 EXPECT_STREQ("QUIC_BAD_APPLICATION_PAYLOAD", 16 EXPECT_STREQ("QUIC_BAD_APPLICATION_PAYLOAD",
16 QuicRstStreamErrorCodeToString(QUIC_BAD_APPLICATION_PAYLOAD)); 17 QuicRstStreamErrorCodeToString(QUIC_BAD_APPLICATION_PAYLOAD));
17 } 18 }
18 19
19 TEST(QuicUtilsTest, QuicErrorCodeToString) { 20 TEST_F(QuicErrorCodesTest, QuicErrorCodeToString) {
20 EXPECT_STREQ("QUIC_NO_ERROR", QuicErrorCodeToString(QUIC_NO_ERROR)); 21 EXPECT_STREQ("QUIC_NO_ERROR", QuicErrorCodeToString(QUIC_NO_ERROR));
21 } 22 }
22 23
23 } // namespace 24 } // namespace
24 } // namespace test 25 } // namespace test
25 } // namespace net 26 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_data_writer_test.cc ('k') | net/quic/core/quic_flow_controller_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698