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

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

Issue 11359217: Move scoped_temp_dir from base to base/files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
OLDNEW
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/http/http_network_transaction.h" 5 #include "net/http/http_network_transaction.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/files/scoped_temp_dir.h"
13 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
14 #include "base/scoped_temp_dir.h"
15 #include "net/base/auth.h" 15 #include "net/base/auth.h"
16 #include "net/base/net_log_unittest.h" 16 #include "net/base/net_log_unittest.h"
17 #include "net/base/upload_data.h" 17 #include "net/base/upload_data.h"
18 #include "net/base/upload_data_stream.h" 18 #include "net/base/upload_data_stream.h"
19 #include "net/http/http_network_session_peer.h" 19 #include "net/http/http_network_session_peer.h"
20 #include "net/http/http_transaction_unittest.h" 20 #include "net/http/http_transaction_unittest.h"
21 #include "net/socket/client_socket_pool_base.h" 21 #include "net/socket/client_socket_pool_base.h"
22 #include "net/spdy/buffered_spdy_framer.h" 22 #include "net/spdy/buffered_spdy_framer.h"
23 #include "net/spdy/spdy_http_stream.h" 23 #include "net/spdy/spdy_http_stream.h"
24 #include "net/spdy/spdy_http_utils.h" 24 #include "net/spdy/spdy_http_utils.h"
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 private: 570 private:
571 scoped_ptr<UploadDataStream> upload_data_stream_; 571 scoped_ptr<UploadDataStream> upload_data_stream_;
572 bool google_get_request_initialized_; 572 bool google_get_request_initialized_;
573 bool google_post_request_initialized_; 573 bool google_post_request_initialized_;
574 bool google_chunked_post_request_initialized_; 574 bool google_chunked_post_request_initialized_;
575 HttpRequestInfo google_get_request_; 575 HttpRequestInfo google_get_request_;
576 HttpRequestInfo google_post_request_; 576 HttpRequestInfo google_post_request_;
577 HttpRequestInfo google_chunked_post_request_; 577 HttpRequestInfo google_chunked_post_request_;
578 HttpRequestInfo google_get_push_request_; 578 HttpRequestInfo google_get_push_request_;
579 SpdyTestStateHelper spdy_state_; 579 SpdyTestStateHelper spdy_state_;
580 ScopedTempDir temp_dir_; 580 base::ScopedTempDir temp_dir_;
581 }; 581 };
582 582
583 //----------------------------------------------------------------------------- 583 //-----------------------------------------------------------------------------
584 // All tests are run with three different connection types: SPDY after NPN 584 // All tests are run with three different connection types: SPDY after NPN
585 // negotiation, SPDY without SSL, and SPDY with SSL. 585 // negotiation, SPDY without SSL, and SPDY with SSL.
586 INSTANTIATE_TEST_CASE_P(Spdy, 586 INSTANTIATE_TEST_CASE_P(Spdy,
587 SpdyNetworkTransactionSpdy3Test, 587 SpdyNetworkTransactionSpdy3Test,
588 ::testing::Values(SPDYNOSSL, SPDYSSL, SPDYNPN)); 588 ::testing::Values(SPDYNOSSL, SPDYSSL, SPDYNPN));
589 589
590 590
(...skipping 5757 matching lines...) Expand 10 before | Expand all | Expand 10 after
6348 // And now we can allow everything else to run to completion. 6348 // And now we can allow everything else to run to completion.
6349 data.SetStop(10); 6349 data.SetStop(10);
6350 data.Run(); 6350 data.Run();
6351 EXPECT_EQ(OK, callback2.WaitForResult()); 6351 EXPECT_EQ(OK, callback2.WaitForResult());
6352 EXPECT_EQ(OK, callback3.WaitForResult()); 6352 EXPECT_EQ(OK, callback3.WaitForResult());
6353 6353
6354 helper.VerifyDataConsumed(); 6354 helper.VerifyDataConsumed();
6355 } 6355 }
6356 6356
6357 } // namespace net 6357 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_network_transaction_spdy2_unittest.cc ('k') | net/url_request/url_fetcher_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698