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

Side by Side Diff: android_webview/browser/test/rendering_test.h

Issue 1816283005: Move SharedRendererState ownership to AwContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_
6 #define ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ 6 #define ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_
7 7
8 #include "android_webview/browser/browser_view_renderer_client.h" 8 #include "android_webview/browser/browser_view_renderer_client.h"
9 #include "android_webview/browser/test/fake_window.h" 9 #include "android_webview/browser/test/fake_window.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual void StartTest(); 70 virtual void StartTest();
71 71
72 void RunTest(); 72 void RunTest();
73 void InitializeCompositor(); 73 void InitializeCompositor();
74 void Attach(); 74 void Attach();
75 void EndTest(); 75 void EndTest();
76 scoped_ptr<cc::CompositorFrame> ConstructEmptyFrame(); 76 scoped_ptr<cc::CompositorFrame> ConstructEmptyFrame();
77 77
78 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 78 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
79 scoped_ptr<BrowserViewRenderer> browser_view_renderer_; 79 scoped_ptr<BrowserViewRenderer> browser_view_renderer_;
80 scoped_ptr<SharedRendererState> shared_renderer_state_;
80 scoped_ptr<content::TestSynchronousCompositor> compositor_; 81 scoped_ptr<content::TestSynchronousCompositor> compositor_;
81 scoped_ptr<FakeWindow> window_; 82 scoped_ptr<FakeWindow> window_;
82 83
83 private: 84 private:
84 void QuitMessageLoop(); 85 void QuitMessageLoop();
85 86
86 const scoped_ptr<base::MessageLoop> message_loop_; 87 const scoped_ptr<base::MessageLoop> message_loop_;
87 88
88 DISALLOW_COPY_AND_ASSIGN(RenderingTest); 89 DISALLOW_COPY_AND_ASSIGN(RenderingTest);
89 }; 90 };
90 91
91 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \ 92 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \
92 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \ 93 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \
93 class NeedsSemicolon##TEST_FIXTURE_NAME {} 94 class NeedsSemicolon##TEST_FIXTURE_NAME {}
94 95
95 } // namespace android_webview 96 } // namespace android_webview
96 97
97 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ 98 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698