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

Unified Diff: net/spdy/spdy_protocol_test.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/spdy_protocol.cc ('k') | net/spdy/spdy_proxy_client_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_protocol_test.cc
diff --git a/net/spdy/spdy_protocol_test.cc b/net/spdy/spdy_protocol_test.cc
deleted file mode 100644
index 486a7722fda55e82b88134a744e1327c0dd92b1a..0000000000000000000000000000000000000000
--- a/net/spdy/spdy_protocol_test.cc
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2012 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/spdy/spdy_protocol.h"
-
-#include <limits>
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "net/spdy/spdy_bitmasks.h"
-#include "net/spdy/spdy_framer.h"
-#include "net/test/gtest_util.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace {
-
-enum SpdyProtocolTestTypes {
- SPDY2 = net::SPDY2,
- SPDY3 = net::SPDY3,
-};
-
-} // namespace
-
-namespace net {
-
-class SpdyProtocolTest
- : public ::testing::TestWithParam<SpdyProtocolTestTypes> {
- protected:
- void SetUp() override {
- spdy_version_ = static_cast<SpdyMajorVersion>(GetParam());
- }
-
- // Version of SPDY protocol to be used.
- SpdyMajorVersion spdy_version_;
-};
-
-// All tests are run with two different SPDY versions: SPDY/2 and SPDY/3.
-INSTANTIATE_TEST_CASE_P(SpdyProtocolTests,
- SpdyProtocolTest,
- ::testing::Values(SPDY2, SPDY3));
-
-class SpdyProtocolDeathTest : public SpdyProtocolTest {};
-
-// All tests are run with two different SPDY versions: SPDY/2 and SPDY/3.
-INSTANTIATE_TEST_CASE_P(SpdyProtocolDeathTests,
- SpdyProtocolDeathTest,
- ::testing::Values(SPDY2, SPDY3));
-
-TEST_P(SpdyProtocolDeathTest, TestSpdySettingsAndIdOutOfBounds) {
- scoped_ptr<SettingsFlagsAndId> flags_and_id;
-
- EXPECT_DFATAL(flags_and_id.reset(new SettingsFlagsAndId(1, 0xFFFFFFFF)),
- "SPDY setting ID too large.");
- // Make sure that we get expected values in opt mode.
- if (flags_and_id.get() != NULL) {
- EXPECT_EQ(1, flags_and_id->flags());
- EXPECT_EQ(static_cast<SpdyPingId>(0xffffff), flags_and_id->id());
- }
-}
-
-} // namespace net
« no previous file with comments | « net/spdy/spdy_protocol.cc ('k') | net/spdy/spdy_proxy_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698