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

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

Issue 2535283002: Move QuicVersionManager into standalone .h/.cc. No behavior change. (Closed)
Patch Set: Rebase Created 4 years 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_version_manager.cc ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016 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 #include "net/quic/core/quic_version_manager.h"
6
7 #include "net/quic/core/quic_flags.h"
8 #include "net/quic/core/quic_versions.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10 #include "testing/gtest/include/gtest/gtest.h"
11
12 namespace net {
13 namespace test {
14 namespace {
15
16 TEST(QuicVersionManagerTest, QuicVersionManager) {
17 FLAGS_quic_enable_version_36_v3 = false;
18 QuicVersionManager manager(AllSupportedVersions());
19 EXPECT_EQ(FilterSupportedVersions(AllSupportedVersions()),
20 manager.GetSupportedVersions());
21 FLAGS_quic_enable_version_36_v3 = true;
22 EXPECT_EQ(FilterSupportedVersions(AllSupportedVersions()),
23 manager.GetSupportedVersions());
24 EXPECT_EQ(QUIC_VERSION_36, manager.GetSupportedVersions()[0]);
25 EXPECT_EQ(QUIC_VERSION_35, manager.GetSupportedVersions()[1]);
26 }
27
28 } // namespace
29 } // namespace test
30 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_version_manager.cc ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698