Fix build break
[chromium-blink-merge.git] / cc / test / pixel_test.h
blobe915961097335a1c9d0b97ff86ef6098d45d4f03
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_
13 namespace cc {
14 class GLRenderer;
15 class OutputSurface;
16 class ResourceProvider;
18 class PixelTest : public testing::Test {
19 protected:
20 PixelTest();
21 virtual ~PixelTest();
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_;
36 } // namespace cc
38 #endif // CC_TEST_PIXEL_TEST_H_