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

Side by Side Diff: net/spdy/bidirectional_stream_spdy_impl_unittest.cc

Issue 2090463002: Move net/base/test_data_directory.[cc,h] to net/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « net/socket/ssl_server_socket_unittest.cc ('k') | net/spdy/spdy_network_transaction_unittest.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/bidirectional_stream_spdy_impl.h" 5 #include "net/spdy/bidirectional_stream_spdy_impl.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "base/strings/string_piece.h" 14 #include "base/strings/string_piece.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "base/timer/mock_timer.h" 16 #include "base/timer/mock_timer.h"
17 #include "net/base/net_errors.h" 17 #include "net/base/net_errors.h"
18 #include "net/base/test_data_directory.h"
19 #include "net/http/http_request_info.h" 18 #include "net/http/http_request_info.h"
20 #include "net/http/http_response_headers.h" 19 #include "net/http/http_response_headers.h"
21 #include "net/http/http_response_info.h" 20 #include "net/http/http_response_info.h"
22 #include "net/log/net_log.h" 21 #include "net/log/net_log.h"
23 #include "net/log/test_net_log.h" 22 #include "net/log/test_net_log.h"
24 #include "net/socket/socket_test_util.h" 23 #include "net/socket/socket_test_util.h"
25 #include "net/spdy/spdy_session.h" 24 #include "net/spdy/spdy_session.h"
26 #include "net/spdy/spdy_test_util_common.h" 25 #include "net/spdy/spdy_test_util_common.h"
27 #include "net/test/cert_test_util.h" 26 #include "net/test/cert_test_util.h"
27 #include "net/test/test_data_directory.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 29
30 namespace net { 30 namespace net {
31 31
32 namespace { 32 namespace {
33 33
34 const char kBodyData[] = "Body data"; 34 const char kBodyData[] = "Body data";
35 const size_t kBodyDataSize = arraysize(kBodyData); 35 const size_t kBodyDataSize = arraysize(kBodyData);
36 // Size of the buffer to be allocated for each read. 36 // Size of the buffer to be allocated for each read.
37 const size_t kReadBufferSize = 4096; 37 const size_t kReadBufferSize = 4096;
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 EXPECT_FALSE(delegate->on_failed_called()); 364 EXPECT_FALSE(delegate->on_failed_called());
365 365
366 EXPECT_EQ("200", delegate->response_headers().find(":status")->second); 366 EXPECT_EQ("200", delegate->response_headers().find(":status")->second);
367 EXPECT_EQ(0, delegate->on_data_read_count()); 367 EXPECT_EQ(0, delegate->on_data_read_count());
368 EXPECT_EQ(kProtoHTTP2, delegate->GetProtocol()); 368 EXPECT_EQ(kProtoHTTP2, delegate->GetProtocol());
369 EXPECT_EQ(0, delegate->GetTotalSentBytes()); 369 EXPECT_EQ(0, delegate->GetTotalSentBytes());
370 EXPECT_EQ(0, delegate->GetTotalReceivedBytes()); 370 EXPECT_EQ(0, delegate->GetTotalReceivedBytes());
371 } 371 }
372 372
373 } // namespace net 373 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_server_socket_unittest.cc ('k') | net/spdy/spdy_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698