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

Side by Side Diff: net/socket_stream/socket_stream_unittest.cc

Issue 12518036: net: move host_resolver files from net/base to net/dns (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
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/socket_stream/socket_stream.h" 5 #include "net/socket_stream/socket_stream.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/callback.h" 12 #include "base/callback.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "net/base/auth.h" 14 #include "net/base/auth.h"
15 #include "net/base/mock_host_resolver.h"
16 #include "net/base/net_log.h" 15 #include "net/base/net_log.h"
17 #include "net/base/net_log_unittest.h" 16 #include "net/base/net_log_unittest.h"
18 #include "net/base/test_completion_callback.h" 17 #include "net/base/test_completion_callback.h"
18 #include "net/dns/mock_host_resolver.h"
19 #include "net/http/http_network_session.h" 19 #include "net/http/http_network_session.h"
20 #include "net/proxy/proxy_service.h" 20 #include "net/proxy/proxy_service.h"
21 #include "net/socket/socket_test_util.h" 21 #include "net/socket/socket_test_util.h"
22 #include "net/url_request/url_request_test_util.h" 22 #include "net/url_request/url_request_test_util.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include "testing/platform_test.h" 24 #include "testing/platform_test.h"
25 25
26 namespace net { 26 namespace net {
27 27
28 namespace { 28 namespace {
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 800
801 const std::vector<SocketStreamEvent>& events = delegate->GetSeenEvents(); 801 const std::vector<SocketStreamEvent>& events = delegate->GetSeenEvents();
802 ASSERT_EQ(2U, events.size()); 802 ASSERT_EQ(2U, events.size());
803 803
804 EXPECT_EQ(SocketStreamEvent::EVENT_ERROR, events[0].event_type); 804 EXPECT_EQ(SocketStreamEvent::EVENT_ERROR, events[0].event_type);
805 EXPECT_EQ(ERR_ACCESS_DENIED, events[0].error_code); 805 EXPECT_EQ(ERR_ACCESS_DENIED, events[0].error_code);
806 EXPECT_EQ(SocketStreamEvent::EVENT_CLOSE, events[1].event_type); 806 EXPECT_EQ(SocketStreamEvent::EVENT_CLOSE, events[1].event_type);
807 } 807 }
808 808
809 } // namespace net 809 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698