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

Side by Side Diff: content/browser/renderer_host/render_view_host_unittest.cc

Issue 273193004: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 6 years, 6 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
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/path_service.h" 5 #include "base/path_service.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "content/browser/child_process_security_policy_impl.h" 7 #include "content/browser/child_process_security_policy_impl.h"
8 #include "content/browser/frame_host/render_frame_host_impl.h" 8 #include "content/browser/frame_host/render_frame_host_impl.h"
9 #include "content/browser/renderer_host/render_view_host_delegate_view.h" 9 #include "content/browser/renderer_host/render_view_host_delegate_view.h"
10 #include "content/common/input_messages.h" 10 #include "content/common/input_messages.h"
(...skipping 11 matching lines...) Expand all
22 #include "third_party/WebKit/public/web/WebDragOperation.h" 22 #include "third_party/WebKit/public/web/WebDragOperation.h"
23 23
24 namespace content { 24 namespace content {
25 25
26 class RenderViewHostTestBrowserClient : public TestContentBrowserClient { 26 class RenderViewHostTestBrowserClient : public TestContentBrowserClient {
27 public: 27 public:
28 RenderViewHostTestBrowserClient() {} 28 RenderViewHostTestBrowserClient() {}
29 virtual ~RenderViewHostTestBrowserClient() {} 29 virtual ~RenderViewHostTestBrowserClient() {}
30 30
31 virtual bool IsHandledURL(const GURL& url) OVERRIDE { 31 virtual bool IsHandledURL(const GURL& url) OVERRIDE {
32 return url.scheme() == kFileScheme; 32 return url.scheme() == url::kFileScheme;
33 } 33 }
34 34
35 private: 35 private:
36 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestBrowserClient); 36 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestBrowserClient);
37 }; 37 };
38 38
39 class RenderViewHostTest : public RenderViewHostImplTestHarness { 39 class RenderViewHostTest : public RenderViewHostImplTestHarness {
40 public: 40 public:
41 RenderViewHostTest() : old_browser_client_(NULL) {} 41 RenderViewHostTest() : old_browser_client_(NULL) {}
42 virtual ~RenderViewHostTest() {} 42 virtual ~RenderViewHostTest() {}
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 } 238 }
239 239
240 TEST_F(RenderViewHostTest, RoutingIdSane) { 240 TEST_F(RenderViewHostTest, RoutingIdSane) {
241 RenderFrameHostImpl* root_rfh = 241 RenderFrameHostImpl* root_rfh =
242 contents()->GetFrameTree()->root()->current_frame_host(); 242 contents()->GetFrameTree()->root()->current_frame_host();
243 EXPECT_EQ(test_rvh()->GetProcess(), root_rfh->GetProcess()); 243 EXPECT_EQ(test_rvh()->GetProcess(), root_rfh->GetProcess());
244 EXPECT_NE(test_rvh()->GetRoutingID(), root_rfh->routing_id()); 244 EXPECT_NE(test_rvh()->GetRoutingID(), root_rfh->routing_id());
245 } 245 }
246 246
247 } // namespace content 247 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698