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

Side by Side Diff: content/browser/devtools/devtools_http_handler_unittest.cc

Issue 13812005: net: move socket files from net/base to net/socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort gyp Created 7 years, 8 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 | « chrome_frame/test/test_with_web_server.cc ('k') | content/shell/shell_devtools_delegate.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 (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 "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/run_loop.h" 6 #include "base/run_loop.h"
7 #include "content/browser/browser_thread_impl.h" 7 #include "content/browser/browser_thread_impl.h"
8 #include "content/public/browser/devtools_http_handler.h" 8 #include "content/public/browser/devtools_http_handler.h"
9 #include "content/public/browser/devtools_http_handler_delegate.h" 9 #include "content/public/browser/devtools_http_handler_delegate.h"
10 #include "net/base/stream_listen_socket.h" 10 #include "net/socket/stream_listen_socket.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace content { 13 namespace content {
14 namespace { 14 namespace {
15 15
16 using net::StreamListenSocket; 16 using net::StreamListenSocket;
17 17
18 class DummyListenSocket : public StreamListenSocket, 18 class DummyListenSocket : public StreamListenSocket,
19 public StreamListenSocket::Delegate { 19 public StreamListenSocket::Delegate {
20 public: 20 public:
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 new DummyDelegate()); 104 new DummyDelegate());
105 // Our dummy socket factory will post a quit message once the server will 105 // Our dummy socket factory will post a quit message once the server will
106 // become ready. 106 // become ready.
107 run_loop.Run(); 107 run_loop.Run();
108 devtools_http_handler_->Stop(); 108 devtools_http_handler_->Stop();
109 // Make sure the handler actually stops. 109 // Make sure the handler actually stops.
110 run_loop_2.Run(); 110 run_loop_2.Run();
111 } 111 }
112 112
113 } // namespace content 113 } // namespace content
OLDNEW
« no previous file with comments | « chrome_frame/test/test_with_web_server.cc ('k') | content/shell/shell_devtools_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698