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

Unified Diff: cc/test/pixel_test.h

Issue 12518026: cc: Add layer-based pixel tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/layer_tree_test_common.cc ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/pixel_test.h
diff --git a/cc/test/pixel_test.h b/cc/test/pixel_test.h
new file mode 100644
index 0000000000000000000000000000000000000000..40acb33830ab959366bb503c0ad2dae9320c0a96
--- /dev/null
+++ b/cc/test/pixel_test.h
@@ -0,0 +1,36 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/file_util.h"
+#include "testing/gtest/include/gtest/gtest.h"
+#include "ui/gfx/size.h"
+
+#ifndef CC_TEST_PIXEL_TEST_H_
+#define CC_TEST_PIXEL_TEST_H_
+
+namespace cc {
+class GLRenderer;
+class OutputSurface;
+class ResourceProvider;
+
+class PixelTest : public testing::Test {
+ protected:
+ PixelTest();
+ virtual ~PixelTest();
+
+ virtual void SetUp() OVERRIDE;
+
+ bool PixelsMatchReference(const base::FilePath& ref_file);
+
+ gfx::Size device_viewport_size_;
+ scoped_ptr<OutputSurface> output_surface_;
+ scoped_ptr<ResourceProvider> resource_provider_;
+ class PixelTestRendererClient;
+ scoped_ptr<PixelTestRendererClient> fake_client_;
+ scoped_ptr<GLRenderer> renderer_;
+};
+
+} // namespace cc
+
+#endif // CC_TEST_PIXEL_TEST_H_
« no previous file with comments | « cc/test/layer_tree_test_common.cc ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698