chromium/third_party/blink/renderer/modules/csspaint/paint_rendering_context_2d_test.cc

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

#include "third_party/blink/renderer/modules/csspaint/paint_rendering_context_2d.h"

#include "cc/paint/paint_op.h"
#include "cc/test/paint_op_matchers.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/scheduler/test/renderer_scheduler_test_support.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/core/geometry/dom_matrix.h"
#include "third_party/blink/renderer/core/html/canvas/recording_test_utils.h"
#include "third_party/blink/renderer/modules/canvas/canvas2d/canvas_style_test_utils.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"

namespace blink {
namespace {

RecordedOpsAre;
ConcatOp;
DrawColorOp;
DrawRectOp;
PaintOpEq;
RestoreOp;
SaveOp;
ScaleOp;
SetMatrixOp;

static const int kWidth =;
static const int kHeight =;

void TrySettingStrokeStyle(V8TestingScope& v8_testing_scope,
                           PaintRenderingContext2D* ctx,
                           const String& expected,
                           const String& value) {}

TEST(PaintRenderingContext2DTest, testParseColorOrCurrentColor) {}

TEST(PaintRenderingContext2DTest, testWidthAndHeight) {}

TEST(PaintRenderingContext2DTest, testBasicState) {}

TEST(PaintRenderingContext2DTest, setTransformWithDeviceScaleFactor) {}

TEST(PaintRenderingContext2DTest, setTransformWithDefaultDeviceScaleFactor) {}

TEST(PaintRenderingContext2DTest, resetWithDeviceScaleFactor) {}

TEST(PaintRenderingContext2DTest, resetWithDefaultDeviceScaleFactor) {}

TEST(PaintRenderingContext2DTest, overdrawOptimizationNotApplied) {}

TEST(PaintRenderingContext2DTest, overdrawOptimizationApplied) {}

}  // namespace
}  // namespace blink