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

Side by Side Diff: net/websockets/websocket_deflate_stream_test.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 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/websockets/websocket_deflate_stream.h ('k') | net/websockets/websocket_deflater.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/websockets/websocket_deflate_stream.h" 5 #include "net/websockets/websocket_deflate_stream.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <deque> 9 #include <deque>
10 #include <iterator> 10 #include <iterator>
11 #include <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/bind.h" 15 #include "base/bind.h"
16 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
18 #include "net/base/completion_callback.h" 19 #include "net/base/completion_callback.h"
19 #include "net/base/io_buffer.h" 20 #include "net/base/io_buffer.h"
20 #include "net/base/net_errors.h" 21 #include "net/base/net_errors.h"
21 #include "net/websockets/websocket_deflate_parameters.h" 22 #include "net/websockets/websocket_deflate_parameters.h"
22 #include "net/websockets/websocket_deflate_predictor.h" 23 #include "net/websockets/websocket_deflate_predictor.h"
23 #include "net/websockets/websocket_deflater.h" 24 #include "net/websockets/websocket_deflater.h"
24 #include "net/websockets/websocket_frame.h" 25 #include "net/websockets/websocket_frame.h"
25 #include "net/websockets/websocket_inflater.h" 26 #include "net/websockets/websocket_inflater.h"
(...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 const std::vector<scoped_ptr<WebSocketFrame>>& frames_passed = *stub.frames(); 1357 const std::vector<scoped_ptr<WebSocketFrame>>& frames_passed = *stub.frames();
1357 ASSERT_EQ(1u, frames_passed.size()); 1358 ASSERT_EQ(1u, frames_passed.size());
1358 EXPECT_EQ( 1359 EXPECT_EQ(
1359 std::string("r\xce(\xca\xcf\xcd,\xcdM\x1c\xe1\xc0\x19\x1a\x0e\0\0", 17), 1360 std::string("r\xce(\xca\xcf\xcd,\xcdM\x1c\xe1\xc0\x19\x1a\x0e\0\0", 17),
1360 ToString(frames_passed[0])); 1361 ToString(frames_passed[0]));
1361 } 1362 }
1362 1363
1363 } // namespace 1364 } // namespace
1364 1365
1365 } // namespace net 1366 } // namespace net
OLDNEW
« no previous file with comments | « net/websockets/websocket_deflate_stream.h ('k') | net/websockets/websocket_deflater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698