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

Side by Side Diff: cc/resources/texture_mailbox_deleter_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
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/resources/texture_mailbox_deleter.h" 5 #include "cc/resources/texture_mailbox_deleter.h"
6 6
7 #include "cc/debug/test_context_provider.h"
8 #include "cc/debug/test_web_graphics_context_3d.h"
9 #include "cc/resources/single_release_callback.h" 7 #include "cc/resources/single_release_callback.h"
8 #include "cc/test/test_context_provider.h"
9 #include "cc/test/test_web_graphics_context_3d.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace cc { 12 namespace cc {
13 namespace { 13 namespace {
14 14
15 TEST(TextureMailboxDeleterTest, Destroy) { 15 TEST(TextureMailboxDeleterTest, Destroy) {
16 scoped_ptr<TextureMailboxDeleter> deleter(new TextureMailboxDeleter); 16 scoped_ptr<TextureMailboxDeleter> deleter(new TextureMailboxDeleter);
17 17
18 scoped_refptr<TestContextProvider> context_provider = 18 scoped_refptr<TestContextProvider> context_provider =
19 TestContextProvider::Create(); 19 TestContextProvider::Create();
(...skipping 15 matching lines...) Expand all
35 EXPECT_TRUE(context_provider->HasOneRef()); 35 EXPECT_TRUE(context_provider->HasOneRef());
36 EXPECT_EQ(0u, context_provider->TestContext3d()->NumTextures()); 36 EXPECT_EQ(0u, context_provider->TestContext3d()->NumTextures());
37 37
38 // Run the scoped release callback before destroying it, but it won't do 38 // Run the scoped release callback before destroying it, but it won't do
39 // anything. 39 // anything.
40 cb->Run(0, false); 40 cb->Run(0, false);
41 } 41 }
42 42
43 } // namespace 43 } // namespace
44 } // namespace cc 44 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/resource_update_controller_unittest.cc ('k') | cc/resources/video_resource_updater_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698