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

Unified Diff: cc/resources/scoped_gpu_raster_unittest.cc

Issue 1144693002: cc: Move files out of cc/resources/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resources: android Created 5 years, 7 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/resources/scoped_gpu_raster.cc ('k') | cc/resources/task_graph_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/scoped_gpu_raster_unittest.cc
diff --git a/cc/resources/scoped_gpu_raster_unittest.cc b/cc/resources/scoped_gpu_raster_unittest.cc
deleted file mode 100644
index b1f60a3c29b0ccb07e17fa80a9ac1bb5f31524d5..0000000000000000000000000000000000000000
--- a/cc/resources/scoped_gpu_raster_unittest.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2014 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 "cc/resources/scoped_gpu_raster.h"
-#include "cc/test/test_context_provider.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace cc {
-namespace {
-
-class ScopedGpuRasterTest : public testing::Test {
- public:
- ScopedGpuRasterTest() {}
-};
-
-// Releasing ScopedGpuRaster should restore GL_UNPACK_ALIGNMENT == 4.
-TEST(ScopedGpuRasterTest, RestoresUnpackAlignment) {
- scoped_refptr<TestContextProvider> provider = TestContextProvider::Create();
- EXPECT_TRUE(provider->BindToCurrentThread());
- gpu::gles2::GLES2Interface* gl = provider->ContextGL();
- GLint unpack_alignment = 0;
- gl->GetIntegerv(GL_UNPACK_ALIGNMENT, &unpack_alignment);
- EXPECT_EQ(4, unpack_alignment);
-
- {
- scoped_ptr<ScopedGpuRaster> scoped_gpu_raster(
- new ScopedGpuRaster(provider.get()));
- gl->PixelStorei(GL_UNPACK_ALIGNMENT, 1);
- gl->GetIntegerv(GL_UNPACK_ALIGNMENT, &unpack_alignment);
- EXPECT_EQ(1, unpack_alignment);
- }
-
- gl->GetIntegerv(GL_UNPACK_ALIGNMENT, &unpack_alignment);
- EXPECT_EQ(4, unpack_alignment);
-}
-
-} // namespace
-} // namespace cc
« no previous file with comments | « cc/resources/scoped_gpu_raster.cc ('k') | cc/resources/task_graph_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698