| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/spdy/spdy_protocol.h" | 5 #include "net/spdy/spdy_protocol.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 11 #include "net/spdy/spdy_bitmasks.h" | 10 #include "net/spdy/spdy_bitmasks.h" |
| 12 #include "net/spdy/spdy_framer.h" | 11 #include "net/spdy/spdy_framer.h" |
| 13 #include "net/test/gtest_util.h" | 12 #include "net/test/gtest_util.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 14 |
| 16 namespace { | 15 namespace { |
| 17 | 16 |
| 18 enum SpdyProtocolTestTypes { | 17 enum SpdyProtocolTestTypes { |
| 19 SPDY2 = net::SPDY2, | 18 SPDY2 = net::SPDY2, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 EXPECT_DFATAL(flags_and_id.reset(new SettingsFlagsAndId(1, 0xFFFFFFFF)), | 52 EXPECT_DFATAL(flags_and_id.reset(new SettingsFlagsAndId(1, 0xFFFFFFFF)), |
| 54 "SPDY setting ID too large."); | 53 "SPDY setting ID too large."); |
| 55 // Make sure that we get expected values in opt mode. | 54 // Make sure that we get expected values in opt mode. |
| 56 if (flags_and_id.get() != NULL) { | 55 if (flags_and_id.get() != NULL) { |
| 57 EXPECT_EQ(1, flags_and_id->flags()); | 56 EXPECT_EQ(1, flags_and_id->flags()); |
| 58 EXPECT_EQ(static_cast<SpdyPingId>(0xffffff), flags_and_id->id()); | 57 EXPECT_EQ(static_cast<SpdyPingId>(0xffffff), flags_and_id->id()); |
| 59 } | 58 } |
| 60 } | 59 } |
| 61 | 60 |
| 62 } // namespace net | 61 } // namespace net |
| OLD | NEW |