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

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

Issue 12210030: Linux/ChromeOS Chromium style checker cleanup, content/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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 "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/base/stream_listen_socket.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 base::Closure quit_closure_2_; 54 base::Closure quit_closure_2_;
55 }; 55 };
56 56
57 class DummyDelegate : public DevToolsHttpHandlerDelegate { 57 class DummyDelegate : public DevToolsHttpHandlerDelegate {
58 public: 58 public:
59 virtual std::string GetDiscoveryPageHTML() OVERRIDE { return ""; } 59 virtual std::string GetDiscoveryPageHTML() OVERRIDE { return ""; }
60 virtual bool BundlesFrontendResources() OVERRIDE { return true; } 60 virtual bool BundlesFrontendResources() OVERRIDE { return true; }
61 virtual base::FilePath GetDebugFrontendDir() OVERRIDE { 61 virtual base::FilePath GetDebugFrontendDir() OVERRIDE {
62 return base::FilePath(); 62 return base::FilePath();
63 } 63 }
64 virtual std::string GetPageThumbnailData(const GURL& url) { return ""; } 64 virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE {
65 virtual RenderViewHost* CreateNewTarget() { return NULL; } 65 return "";
66 virtual TargetType GetTargetType(RenderViewHost*) { return kTargetTypeTab; } 66 }
67 virtual RenderViewHost* CreateNewTarget() OVERRIDE { return NULL; }
68 virtual TargetType GetTargetType(RenderViewHost*) OVERRIDE {
69 return kTargetTypeTab;
70 }
67 }; 71 };
68 72
69 } 73 }
70 74
71 class DevToolsHttpHandlerTest : public testing::Test { 75 class DevToolsHttpHandlerTest : public testing::Test {
72 public: 76 public:
73 DevToolsHttpHandlerTest() 77 DevToolsHttpHandlerTest()
74 : ui_thread_(BrowserThread::UI, &message_loop_) { 78 : ui_thread_(BrowserThread::UI, &message_loop_) {
75 } 79 }
76 protected: 80 protected:
(...skipping 20 matching lines...) Expand all
97 new DummyDelegate()); 101 new DummyDelegate());
98 // Our dummy socket factory will post a quit message once the server will 102 // Our dummy socket factory will post a quit message once the server will
99 // become ready. 103 // become ready.
100 run_loop.Run(); 104 run_loop.Run();
101 devtools_http_handler_->Stop(); 105 devtools_http_handler_->Stop();
102 // Make sure the handler actually stops. 106 // Make sure the handler actually stops.
103 run_loop_2.Run(); 107 run_loop_2.Run();
104 } 108 }
105 109
106 } // namespace content 110 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_http_handler_impl.cc ('k') | content/browser/devtools/devtools_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698