summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_bitmasks.h
diff options
context:
space:
mode:
authormlloyd@chromium.org <mlloyd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-08 20:50:13 +0000
committermlloyd@chromium.org <mlloyd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-08 20:50:13 +0000
commite9eeaf55115c9ac8bb991d318b4427beee69e735 (patch)
treec491c5506ecb583ca9cdae84c7e92fbde2287707 /net/spdy/spdy_bitmasks.h
parenta13e022a717bd7d9e43681aafd4201573bcd3147 (diff)
downloadchromium_src-e9eeaf55115c9ac8bb991d318b4427beee69e735.zip
chromium_src-e9eeaf55115c9ac8bb991d318b4427beee69e735.tar.gz
chromium_src-e9eeaf55115c9ac8bb991d318b4427beee69e735.tar.bz2
Adds tests for the SpdyFramer.Create* frame creation methods.
Also tightens up and fixes some of the DCHECKs in the frame creation logic to address issues discovered while writing the tests. BUG=None TEST=net_unittests pass Review URL: http://codereview.chromium.org/2834046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_bitmasks.h')
-rw-r--r--net/spdy/spdy_bitmasks.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/spdy/spdy_bitmasks.h b/net/spdy/spdy_bitmasks.h
index 40403e1..03752e3 100644
--- a/net/spdy/spdy_bitmasks.h
+++ b/net/spdy/spdy_bitmasks.h
@@ -22,6 +22,12 @@ const unsigned int kLengthMask = 0xffffff;
// Mask the Id from a SETTINGS id.
const unsigned int kSettingsIdMask = 0xffffff;
+// Legal flags on data packets.
+const int kDataFlagsMask = 0x03;
+
+// Legal flags on control packets.
+const int kControlFlagsMask = 0x03;
+
} // namespace spdy
#endif // NET_SPDY_SPDY_BITMASKS_H_