| OLD | NEW | 
|---|
| 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 | 
| OLD | NEW | 
|---|