| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "CCDrawQuad.h" | 7 #include "CCDrawQuad.h" |
| 8 | 8 |
| 9 #include "CCCheckerboardDrawQuad.h" | 9 #include "CCCheckerboardDrawQuad.h" |
| 10 #include "CCDebugBorderDrawQuad.h" | 10 #include "CCDebugBorderDrawQuad.h" |
| 11 #include "CCGeometryTestUtils.h" | 11 #include "CCGeometryTestUtils.h" |
| 12 #include "CCIOSurfaceDrawQuad.h" | 12 #include "CCIOSurfaceDrawQuad.h" |
| 13 #include "CCRenderPassDrawQuad.h" | 13 #include "CCRenderPassDrawQuad.h" |
| 14 #include "CCSolidColorDrawQuad.h" | 14 #include "CCSolidColorDrawQuad.h" |
| 15 #include "CCStreamVideoDrawQuad.h" | 15 #include "CCStreamVideoDrawQuad.h" |
| 16 #include "CCTextureDrawQuad.h" | 16 #include "CCTextureDrawQuad.h" |
| 17 #include "CCTileDrawQuad.h" | 17 #include "CCTileDrawQuad.h" |
| 18 #include "CCYUVVideoDrawQuad.h" | 18 #include "CCYUVVideoDrawQuad.h" |
| 19 #include <gtest/gtest.h> | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #include <public/WebTransformationMatrix.h> | 20 #include <public/WebTransformationMatrix.h> |
| 21 | 21 |
| 22 using WebKit::WebTransformationMatrix; | 22 using WebKit::WebTransformationMatrix; |
| 23 | 23 |
| 24 using namespace cc; | 24 using namespace cc; |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 TEST(CCDrawQuadTest, copySharedQuadState) | 28 TEST(CCDrawQuadTest, copySharedQuadState) |
| 29 { | 29 { |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 EXPECT_EQ(uPlane.size, copyQuad->uPlane().size); | 305 EXPECT_EQ(uPlane.size, copyQuad->uPlane().size); |
| 306 EXPECT_EQ(uPlane.format, copyQuad->uPlane().format); | 306 EXPECT_EQ(uPlane.format, copyQuad->uPlane().format); |
| 307 EXPECT_EQ(uPlane.visibleSize, copyQuad->uPlane().visibleSize); | 307 EXPECT_EQ(uPlane.visibleSize, copyQuad->uPlane().visibleSize); |
| 308 EXPECT_EQ(vPlane.resourceId, copyQuad->vPlane().resourceId); | 308 EXPECT_EQ(vPlane.resourceId, copyQuad->vPlane().resourceId); |
| 309 EXPECT_EQ(vPlane.size, copyQuad->vPlane().size); | 309 EXPECT_EQ(vPlane.size, copyQuad->vPlane().size); |
| 310 EXPECT_EQ(vPlane.format, copyQuad->vPlane().format); | 310 EXPECT_EQ(vPlane.format, copyQuad->vPlane().format); |
| 311 EXPECT_EQ(vPlane.visibleSize, copyQuad->vPlane().visibleSize); | 311 EXPECT_EQ(vPlane.visibleSize, copyQuad->vPlane().visibleSize); |
| 312 } | 312 } |
| 313 | 313 |
| 314 } // namespace | 314 } // namespace |
| OLD | NEW |