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.
5 #include "base/file_util.h"
6 #include "cc/test/pixel_comparator.h"
7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/gfx/size.h"
10 #ifndef CC_TEST_PIXEL_TEST_H_
11 #define CC_TEST_PIXEL_TEST_H_
16 class ResourceProvider
;
18 class PixelTest
: public testing::Test
{
23 virtual void SetUp() OVERRIDE
;
25 bool PixelsMatchReference(const base::FilePath
& ref_file
,
26 const PixelComparator
& comparator
);
28 gfx::Size device_viewport_size_
;
29 scoped_ptr
<OutputSurface
> output_surface_
;
30 scoped_ptr
<ResourceProvider
> resource_provider_
;
31 class PixelTestRendererClient
;
32 scoped_ptr
<PixelTestRendererClient
> fake_client_
;
33 scoped_ptr
<GLRenderer
> renderer_
;
38 #endif // CC_TEST_PIXEL_TEST_H_