// 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. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_ANIMATION_TEST_HELPER_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_ANIMATION_TEST_HELPER_H_ #include "third_party/blink/renderer/core/animation/interpolation.h" #include "third_party/blink/renderer/platform/wtf/text/string_view.h" #include "third_party/blink/renderer/platform/wtf/text/wtf_string.h" #include "v8/include/v8.h" namespace blink { class Document; class Element; void SetV8ObjectPropertyAsString(v8::Isolate*, v8::Local, const StringView& name, const StringView& value); void SetV8ObjectPropertyAsNumber(v8::Isolate*, v8::Local, const StringView& name, double value); // Ensures that a set of interpolations actually computes and caches their // internal interpolated value, so that tests can retrieve them. // // All members of the ActiveInterpolations must be instances of // InvalidatableInterpolation. void EnsureInterpolatedValueCached(const ActiveInterpolations&, Document&, Element*); } // namespace blink #endif // THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_ANIMATION_TEST_HELPER_H_