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

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

Issue 141113003: Refactor base/safe_numerics.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/websockets/websocket_channel.cc ('k') | ppapi/host/error_conversion.cc » ('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_channel.h" 5 #include "net/websockets/websocket_channel.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <iostream> 9 #include <iostream>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/bind_helpers.h" 14 #include "base/bind_helpers.h"
15 #include "base/callback.h" 15 #include "base/callback.h"
16 #include "base/location.h" 16 #include "base/location.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/memory/scoped_vector.h" 18 #include "base/memory/scoped_vector.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/message_loop/message_loop.h" 20 #include "base/message_loop/message_loop.h"
21 #include "base/safe_numerics.h"
22 #include "base/strings/string_piece.h" 21 #include "base/strings/string_piece.h"
23 #include "net/base/net_errors.h" 22 #include "net/base/net_errors.h"
24 #include "net/base/test_completion_callback.h" 23 #include "net/base/test_completion_callback.h"
25 #include "net/url_request/url_request_context.h" 24 #include "net/url_request/url_request_context.h"
26 #include "net/websockets/websocket_errors.h" 25 #include "net/websockets/websocket_errors.h"
27 #include "net/websockets/websocket_event_interface.h" 26 #include "net/websockets/websocket_event_interface.h"
28 #include "net/websockets/websocket_mux.h" 27 #include "net/websockets/websocket_mux.h"
29 #include "testing/gmock/include/gmock/gmock.h" 28 #include "testing/gmock/include/gmock/gmock.h"
30 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
31 #include "url/gurl.h" 30 #include "url/gurl.h"
(...skipping 2352 matching lines...) Expand 10 before | Expand all | Expand 10 after
2384 channel_->StartClosingHandshake(kWebSocketNormalClosure, "OK"); 2383 channel_->StartClosingHandshake(kWebSocketNormalClosure, "OK");
2385 ASSERT_TRUE(read_frames); 2384 ASSERT_TRUE(read_frames);
2386 // Provide the "Close" message from the server. 2385 // Provide the "Close" message from the server.
2387 *read_frames = CreateFrameVector(frames); 2386 *read_frames = CreateFrameVector(frames);
2388 read_callback.Run(OK); 2387 read_callback.Run(OK);
2389 completion.WaitForResult(); 2388 completion.WaitForResult();
2390 } 2389 }
2391 2390
2392 } // namespace 2391 } // namespace
2393 } // namespace net 2392 } // namespace net
OLDNEW
« no previous file with comments | « net/websockets/websocket_channel.cc ('k') | ppapi/host/error_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698