chromium/cc/animation/keyframe_model_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "cc/animation/keyframe_model.h"

#include <limits>

#include "base/strings/stringprintf.h"
#include "cc/test/animation_test_common.h"
#include "cc/trees/target_property.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace cc {
namespace {


static base::TimeTicks TicksFromSecondsF(double seconds) {}

std::unique_ptr<KeyframeModel> CreateKeyframeModel(double iterations,
                                                   double duration,
                                                   double playback_rate) {}

std::unique_ptr<KeyframeModel> CreateKeyframeModel(double iterations,
                                                   double duration) {}

std::unique_ptr<KeyframeModel> CreateKeyframeModel(double iterations) {}

TEST(KeyframeModelTest, TrimTimeZeroIterations) {}

TEST(KeyframeModelTest, TrimTimeOneIteration) {}

TEST(KeyframeModelTest, TrimTimeOneHalfIteration) {}

TEST(KeyframeModelTest, TrimTimeInfiniteIterations) {}

TEST(KeyframeModelTest, TrimTimeReverse) {}

TEST(KeyframeModelTest, TrimTimeAlternateInfiniteIterations) {}

TEST(KeyframeModelTest, TrimTimeAlternateOneIteration) {}

TEST(KeyframeModelTest, TrimTimeAlternateTwoIterations) {}

TEST(KeyframeModelTest, TrimTimeAlternateTwoHalfIterations) {}

TEST(KeyframeModelTest, TrimTimeAlternateReverseInfiniteIterations) {}

TEST(KeyframeModelTest, TrimTimeAlternateReverseOneIteration) {}

TEST(KeyframeModelTest, TrimTimeAlternateReverseTwoIterations) {}

TEST(KeyframeModelTest, TrimTimeStartTime) {}

TEST(KeyframeModelTest, TrimTimeStartTimeReverse) {}

TEST(KeyframeModelTest, TrimTimeTimeOffset) {}

TEST(KeyframeModelTest, TrimTimeTimeOffsetReverse) {}

TEST(KeyframeModelTest, TrimTimeNegativeTimeOffset) {}

TEST(KeyframeModelTest, TrimTimeNegativeTimeOffsetReverse) {}

TEST(KeyframeModelTest, TrimTimePauseBasic) {}

TEST(KeyframeModelTest, TrimTimePauseAffectedByDelay) {}

TEST(KeyframeModelTest, TrimTimePauseNotAffectedByStartTime) {}

TEST(KeyframeModelTest, TrimTimePauseResume) {}

TEST(KeyframeModelTest, TrimTimePauseResumeReverse) {}

TEST(KeyframeModelTest, TrimTimeZeroDuration) {}

TEST(KeyframeModelTest, TrimTimeStarting) {}

TEST(KeyframeModelTest, TrimTimeNeedsSynchronizedStartTime) {}

TEST(KeyframeModelTest, IsFinishedAtZeroIterations) {}

TEST(KeyframeModelTest, IsFinishedAtOneIteration) {}

TEST(KeyframeModelTest, IsFinishedAtInfiniteIterations) {}

TEST(KeyframeModelTest, IsFinishedNegativeTimeOffset) {}

TEST(KeyframeModelTest, IsFinishedPositiveTimeOffset) {}

TEST(KeyframeModelTest, IsFinishedAtNotRunning) {}

TEST(KeyframeModelTest, IsFinished) {}

TEST(KeyframeModelTest, IsFinishedNeedsSynchronizedStartTime) {}

TEST(KeyframeModelTest, TrimTimePlaybackNormal) {}

TEST(KeyframeModelTest, TrimTimePlaybackSlow) {}

TEST(KeyframeModelTest, TrimTimePlaybackFast) {}

TEST(KeyframeModelTest, TrimTimePlaybackNormalReverse) {}

TEST(KeyframeModelTest, TrimTimePlaybackSlowReverse) {}

TEST(KeyframeModelTest, TrimTimePlaybackFastReverse) {}

TEST(KeyframeModelTest, TrimTimePlaybackFastInfiniteIterations) {}

TEST(KeyframeModelTest, TrimTimePlaybackNormalDoubleReverse) {}

TEST(KeyframeModelTest, TrimTimePlaybackFastDoubleReverse) {}

TEST(KeyframeModelTest, TrimTimeAlternateTwoIterationsPlaybackFast) {}

TEST(KeyframeModelTest, TrimTimeAlternateTwoIterationsPlaybackFastReverse) {}

TEST(KeyframeModelTest,
     TrimTimeAlternateTwoIterationsPlaybackFastDoubleReverse) {}

TEST(KeyframeModelTest,
     TrimTimeAlternateReverseThreeIterationsPlaybackFastAlternateReverse) {}

TEST(KeyframeModelTest,
     TrimTimeAlternateReverseTwoIterationsPlaybackNormalAlternate) {}

TEST(KeyframeModelTest, TrimTimeIterationStart) {}

TEST(KeyframeModelTest, TrimTimeIterationStartAlternate) {}

TEST(KeyframeModelTest, TrimTimeIterationStartAlternateThreeIterations) {}

TEST(KeyframeModelTest,
     TrimTimeIterationStartAlternateThreeIterationsPlaybackReverse) {}

TEST(KeyframeModelTest, InEffectFillMode) {}

TEST(KeyframeModelTest, InEffectFillModeNoneWithNegativePlaybackRate) {}

TEST(KeyframeModelTest, InEffectFillModeWithIterations) {}

TEST(KeyframeModelTest, InEffectFillModeWithInfiniteIterations) {}

TEST(KeyframeModelTest, InEffectReverseWithIterations) {}

// CalculatePhase uses -time_offset_ which may cause integer overflow when
// time_offset_ is set to min(). This test makes sure that the code handles it
// correctly. See https://crbug.com/921454.
TEST(KeyframeModelTest, CalculatePhaseWithMinTimeOffset) {}

TEST(KeyframeModelTest, ToString) {}

TEST(KeyframeModelTest, CustomPropertyKeyframe) {}

TEST(KeyframeModelTest, NonCustomPropertyKeyframe) {}

}  // namespace
}  // namespace cc