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

Side by Side Diff: android_webview/browser/browser_view_renderer_unittest.cc

Issue 786533002: aw: Rendering test harness and end-to-end smoke test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 6 years 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
« no previous file with comments | « android_webview/android_webview_tests.gypi ('k') | android_webview/browser/test/fake_window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "android_webview/browser/browser_view_renderer.h"
5 #include "android_webview/browser/test/rendering_test.h" 6 #include "android_webview/browser/test/rendering_test.h"
6 7
7 namespace android_webview { 8 namespace android_webview {
8 9
9 TEST_F(RenderingTest, SmokeTest) { 10 class SmokeTest : public RenderingTest {
10 SetUpTestHarness(); 11 void StartTest() override {
11 RunTest(); 12 browser_view_renderer_->SetContinuousInvalidate(true);
12 } 13 }
14
15 void WillOnDraw() override {
16 browser_view_renderer_->SetContinuousInvalidate(false);
17 }
18
19 void DidDrawOnRT(SharedRendererState* functor) override {
20 EndTest();
21 }
22 };
23
24 RENDERING_TEST_F(SmokeTest);
13 25
14 } // namespace android_webview 26 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/android_webview_tests.gypi ('k') | android_webview/browser/test/fake_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698