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

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

Issue 12213066: Use base namespace for FilePath in content/browser (Closed) Base URL: svn://svn.chromium.org/chrome/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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 private: 52 private:
53 base::Closure quit_closure_1_; 53 base::Closure quit_closure_1_;
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 FilePath GetDebugFrontendDir() OVERRIDE { return FilePath(); } 61 virtual base::FilePath GetDebugFrontendDir() OVERRIDE { i
62 return base::FilePath();
63 }
62 virtual std::string GetPageThumbnailData(const GURL& url) { return ""; } 64 virtual std::string GetPageThumbnailData(const GURL& url) { return ""; }
63 virtual RenderViewHost* CreateNewTarget() { return NULL; } 65 virtual RenderViewHost* CreateNewTarget() { return NULL; }
64 virtual TargetType GetTargetType(RenderViewHost*) { return kTargetTypeTab; } 66 virtual TargetType GetTargetType(RenderViewHost*) { return kTargetTypeTab; }
65 }; 67 };
66 68
67 } 69 }
68 70
69 class DevToolsHttpHandlerTest : public testing::Test { 71 class DevToolsHttpHandlerTest : public testing::Test {
70 public: 72 public:
71 DevToolsHttpHandlerTest() 73 DevToolsHttpHandlerTest()
(...skipping 23 matching lines...) Expand all
95 new DummyDelegate()); 97 new DummyDelegate());
96 // Our dummy socket factory will post a quit message once the server will 98 // Our dummy socket factory will post a quit message once the server will
97 // become ready. 99 // become ready.
98 run_loop.Run(); 100 run_loop.Run();
99 devtools_http_handler_->Stop(); 101 devtools_http_handler_->Stop();
100 // Make sure the handler actually stops. 102 // Make sure the handler actually stops.
101 run_loop_2.Run(); 103 run_loop_2.Run();
102 } 104 }
103 105
104 } // namespace content 106 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_http_handler_impl.cc ('k') | content/browser/dom_storage/dom_storage_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698