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

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

Issue 12472004: Provide DevToolsHttpHandlerDelegate with an ability to provide additional page info (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Hopefully, cover all delegate implementations 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 "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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) OVERRIDE { 64 virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE {
65 return ""; 65 return "";
66 } 66 }
67 virtual RenderViewHost* CreateNewTarget() OVERRIDE { return NULL; } 67 virtual RenderViewHost* CreateNewTarget() OVERRIDE { return NULL; }
68 virtual TargetType GetTargetType(RenderViewHost*) OVERRIDE { 68 virtual TargetType GetTargetType(RenderViewHost*) OVERRIDE {
69 return kTargetTypeTab; 69 return kTargetTypeTab;
70 } 70 }
71 virtual std::string GetViewDescription(content::RenderViewHost*) OVERRIDE {
72 return "";
73 }
71 }; 74 };
72 75
73 } 76 }
74 77
75 class DevToolsHttpHandlerTest : public testing::Test { 78 class DevToolsHttpHandlerTest : public testing::Test {
76 public: 79 public:
77 DevToolsHttpHandlerTest() 80 DevToolsHttpHandlerTest()
78 : ui_thread_(BrowserThread::UI, &message_loop_) { 81 : ui_thread_(BrowserThread::UI, &message_loop_) {
79 } 82 }
80 protected: 83 protected:
(...skipping 20 matching lines...) Expand all
101 new DummyDelegate()); 104 new DummyDelegate());
102 // 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
103 // become ready. 106 // become ready.
104 run_loop.Run(); 107 run_loop.Run();
105 devtools_http_handler_->Stop(); 108 devtools_http_handler_->Stop();
106 // Make sure the handler actually stops. 109 // Make sure the handler actually stops.
107 run_loop_2.Run(); 110 run_loop_2.Run();
108 } 111 }
109 112
110 } // namespace content 113 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_http_handler_impl.cc ('k') | content/public/browser/devtools_http_handler_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698