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

Side by Side Diff: content/test/test_render_view_host.cc

Issue 2861533003: Backfill some UI tests. (Closed)
Patch Set: comments Created 3 years, 7 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 "content/test/test_render_view_host.h" 5 #include "content/test/test_render_view_host.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 RenderWidgetHost* TestRenderWidgetHostView::GetRenderWidgetHost() const { 85 RenderWidgetHost* TestRenderWidgetHostView::GetRenderWidgetHost() const {
86 return rwh_; 86 return rwh_;
87 } 87 }
88 88
89 gfx::Vector2dF TestRenderWidgetHostView::GetLastScrollOffset() const { 89 gfx::Vector2dF TestRenderWidgetHostView::GetLastScrollOffset() const {
90 return gfx::Vector2dF(); 90 return gfx::Vector2dF();
91 } 91 }
92 92
93 gfx::NativeView TestRenderWidgetHostView::GetNativeView() const { 93 gfx::NativeView TestRenderWidgetHostView::GetNativeView() const {
94 return nullptr; 94 return native_view_;
95 } 95 }
96 96
97 gfx::NativeViewAccessible TestRenderWidgetHostView::GetNativeViewAccessible() { 97 gfx::NativeViewAccessible TestRenderWidgetHostView::GetNativeViewAccessible() {
98 return nullptr; 98 return nullptr;
99 } 99 }
100 100
101 ui::TextInputClient* TestRenderWidgetHostView::GetTextInputClient() { 101 ui::TextInputClient* TestRenderWidgetHostView::GetTextInputClient() {
102 return &text_input_client_; 102 return &text_input_client_;
103 } 103 }
104 104
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 319
320 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 320 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
321 return contents()->GetMainFrame(); 321 return contents()->GetMainFrame();
322 } 322 }
323 323
324 TestWebContents* RenderViewHostImplTestHarness::contents() { 324 TestWebContents* RenderViewHostImplTestHarness::contents() {
325 return static_cast<TestWebContents*>(web_contents()); 325 return static_cast<TestWebContents*>(web_contents());
326 } 326 }
327 327
328 } // namespace content 328 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698