Home | History | Annotate | Download | only in animation

Lines Matching refs:container

50 // Makes sure the animation ups the ref count of the container and releases it
54 scoped_refptr<AnimationContainer> container(new AnimationContainer());
56 animation->SetContainer(container.get());
57 // Setting the container should up the ref count.
58 EXPECT_FALSE(container->HasOneRef());
63 EXPECT_TRUE(container->HasOneRef());
71 scoped_refptr<AnimationContainer> container(new AnimationContainer());
74 animation1.SetContainer(container.get());
75 animation2.SetContainer(container.get());
79 EXPECT_TRUE(container->is_running());
81 EXPECT_TRUE(container->is_running());
90 // And the container should no longer be runnings.
91 EXPECT_FALSE(container->is_running());
99 scoped_refptr<AnimationContainer> container(new AnimationContainer());
100 container->set_observer(&observer);
102 animation1.SetContainer(container.get());
105 // the animation completed the container went empty.
106 EXPECT_CALL(observer, AnimationContainerProgressed(container.get())).Times(
108 EXPECT_CALL(observer, AnimationContainerEmpty(container.get())).Times(1);
112 EXPECT_TRUE(container->is_running());
120 // And the container should no longer be running.
121 EXPECT_FALSE(container->is_running());
123 container->set_observer(NULL);