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

Unified Diff: cc/animation/animation_host_unittest.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 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/animation/animation_host_perftest.cc ('k') | cc/animation/animation_player.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_host_unittest.cc
diff --git a/cc/animation/animation_host_unittest.cc b/cc/animation/animation_host_unittest.cc
index cf828f63f4106211099bc7cbc42920737de628fa..6c396252b3c825f82f2be1f96e584b0973aeaec1 100644
--- a/cc/animation/animation_host_unittest.cc
+++ b/cc/animation/animation_host_unittest.cc
@@ -24,8 +24,9 @@ class AnimationHostTest : public AnimationTimelinesTest {
// animation_player_unittest.cc.
TEST_F(AnimationHostTest, SyncTimelinesAddRemove) {
- scoped_ptr<AnimationHost> host(AnimationHost::Create(ThreadInstance::MAIN));
- scoped_ptr<AnimationHost> host_impl(
+ std::unique_ptr<AnimationHost> host(
+ AnimationHost::Create(ThreadInstance::MAIN));
+ std::unique_ptr<AnimationHost> host_impl(
AnimationHost::Create(ThreadInstance::IMPL));
const int timeline_id = AnimationIdProvider::NextTimelineId();
@@ -56,8 +57,9 @@ TEST_F(AnimationHostTest, SyncTimelinesAddRemove) {
}
TEST_F(AnimationHostTest, ImplOnlyTimeline) {
- scoped_ptr<AnimationHost> host(AnimationHost::Create(ThreadInstance::MAIN));
- scoped_ptr<AnimationHost> host_impl(
+ std::unique_ptr<AnimationHost> host(
+ AnimationHost::Create(ThreadInstance::MAIN));
+ std::unique_ptr<AnimationHost> host_impl(
AnimationHost::Create(ThreadInstance::IMPL));
const int timeline_id1 = AnimationIdProvider::NextTimelineId();
« no previous file with comments | « cc/animation/animation_host_perftest.cc ('k') | cc/animation/animation_player.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698