summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_protocol_test.cc
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-24 22:47:33 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-24 22:47:33 +0000
commit5b3e6d6cce783d9cb9b878f51d26235b7d9606b1 (patch)
tree1366476e2d743a543af8a8f03d4b6f971bf02b98 /net/spdy/spdy_protocol_test.cc
parent812b95b42c5cb860c54f3e7a3f7549c946926a49 (diff)
downloadchromium_src-5b3e6d6cce783d9cb9b878f51d26235b7d9606b1.zip
chromium_src-5b3e6d6cce783d9cb9b878f51d26235b7d9606b1.tar.gz
chromium_src-5b3e6d6cce783d9cb9b878f51d26235b7d9606b1.tar.bz2
Clean up a raft of SPDY files to bring in sync with server
Review URL: http://codereview.chromium.org/10207001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133791 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_protocol_test.cc')
-rw-r--r--net/spdy/spdy_protocol_test.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/net/spdy/spdy_protocol_test.cc b/net/spdy/spdy_protocol_test.cc
index 9dcd81d..d4d9b1f 100644
--- a/net/spdy/spdy_protocol_test.cc
+++ b/net/spdy/spdy_protocol_test.cc
@@ -12,8 +12,8 @@
namespace {
enum SpdyProtocolTestTypes {
- SPDY2,
- SPDY3,
+ SPDY2 = 2,
+ SPDY3 = 3,
};
} // namespace
@@ -24,18 +24,15 @@ class SpdyProtocolTest
: public ::testing::TestWithParam<SpdyProtocolTestTypes> {
protected:
virtual void SetUp() {
- spdy_version_ = (GetParam() == SPDY2) ? 2 : 3;
+ spdy_version_ = GetParam();
}
- virtual void TearDown() {}
-
- bool IsSpdy2() { return spdy_version_ < 3; }
+ bool IsSpdy2() { return spdy_version_ == SPDY2; }
// Version of SPDY protocol to be used.
int spdy_version_;
};
-//-----------------------------------------------------------------------------
// All tests are run with two different SPDY versions: SPDY/2 and SPDY/3.
INSTANTIATE_TEST_CASE_P(SpdyProtocolTests,
SpdyProtocolTest,
@@ -274,10 +271,9 @@ TEST_P(SpdyProtocolTest, HasHeaderBlock) {
}
}
-//-----------------------------------------------------------------------------
-// All tests are run with two different SPDY versions: SPDY/2 and SPDY/3.
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));