OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/file_util.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 #include "ui/gfx/size.h" |
| 8 |
| 9 #ifndef CC_TEST_PIXEL_TEST_H_ |
| 10 #define CC_TEST_PIXEL_TEST_H_ |
| 11 |
| 12 namespace cc { |
| 13 class GLRenderer; |
| 14 class OutputSurface; |
| 15 class ResourceProvider; |
| 16 |
| 17 class PixelTest : public testing::Test { |
| 18 protected: |
| 19 PixelTest(); |
| 20 virtual ~PixelTest(); |
| 21 |
| 22 virtual void SetUp() OVERRIDE; |
| 23 |
| 24 bool PixelsMatchReference(const base::FilePath& ref_file); |
| 25 |
| 26 gfx::Size device_viewport_size_; |
| 27 scoped_ptr<OutputSurface> output_surface_; |
| 28 scoped_ptr<ResourceProvider> resource_provider_; |
| 29 class PixelTestRendererClient; |
| 30 scoped_ptr<PixelTestRendererClient> fake_client_; |
| 31 scoped_ptr<GLRenderer> renderer_; |
| 32 }; |
| 33 |
| 34 } // namespace cc |
| 35 |
| 36 #endif // CC_TEST_PIXEL_TEST_H_ |
OLD | NEW |