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

Side by Side Diff: cc/output/shader_unittest.cc

Issue 50303007: Move test-only stuff from cc/debug/ to cc/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fold cc_test_utils into cc_test_support to fix windows link Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/output/output_surface_unittest.cc ('k') | cc/resources/raster_worker_pool_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 "cc/output/shader.h" 5 #include "cc/output/shader.h"
6 6
7 #include "cc/debug/fake_web_graphics_context_3d.h" 7 #include "cc/test/fake_web_graphics_context_3d.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "ui/gfx/point.h" 9 #include "ui/gfx/point.h"
10 #include "ui/gfx/size.h" 10 #include "ui/gfx/size.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 TEST(ShaderTest, HighpThresholds) { 14 TEST(ShaderTest, HighpThresholds) {
15 // The FakeWebGraphicsContext3D always uses a mediump precision of 10 bits 15 // The FakeWebGraphicsContext3D always uses a mediump precision of 10 bits
16 // which corresponds to a native highp threshold of 2^10 = 1024 16 // which corresponds to a native highp threshold of 2^10 = 1024
17 FakeWebGraphicsContext3D context; 17 FakeWebGraphicsContext3D context;
(...skipping 20 matching lines...) Expand all
38 &context, &threshold_cache, threshold_min, closePoint)); 38 &context, &threshold_cache, threshold_min, closePoint));
39 EXPECT_EQ(TexCoordPrecisionMedium, TexCoordPrecisionRequired( 39 EXPECT_EQ(TexCoordPrecisionMedium, TexCoordPrecisionRequired(
40 &context, &threshold_cache, threshold_min, smallSize)); 40 &context, &threshold_cache, threshold_min, smallSize));
41 EXPECT_EQ(TexCoordPrecisionMedium, TexCoordPrecisionRequired( 41 EXPECT_EQ(TexCoordPrecisionMedium, TexCoordPrecisionRequired(
42 &context, &threshold_cache, threshold_min, farPoint)); 42 &context, &threshold_cache, threshold_min, farPoint));
43 EXPECT_EQ(TexCoordPrecisionMedium, TexCoordPrecisionRequired( 43 EXPECT_EQ(TexCoordPrecisionMedium, TexCoordPrecisionRequired(
44 &context, &threshold_cache, threshold_min, bigSize)); 44 &context, &threshold_cache, threshold_min, bigSize));
45 } 45 }
46 46
47 } // namespace cc 47 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/output_surface_unittest.cc ('k') | cc/resources/raster_worker_pool_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698