chromium/third_party/blink/renderer/core/css/cssom/cross_thread_style_value_test.cc

// Copyright 2019 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/core/css/cssom/cross_thread_style_value.h"

#include <memory>
#include <utility>

#include "base/memory/values_equivalent.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/single_thread_task_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/css/cssom/cross_thread_color_value.h"
#include "third_party/blink/renderer/core/css/cssom/cross_thread_keyword_value.h"
#include "third_party/blink/renderer/core/css/cssom/cross_thread_unit_value.h"
#include "third_party/blink/renderer/core/css/cssom/cross_thread_unparsed_value.h"
#include "third_party/blink/renderer/core/css/cssom/cross_thread_unsupported_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_keyword_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_style_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_unit_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_unparsed_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_unsupported_color.h"
#include "third_party/blink/renderer/platform/scheduler/public/non_main_thread.h"
#include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_copier_std.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"

namespace blink {

class CrossThreadStyleValueTest : public testing::Test {};

// Ensure that a CrossThreadUnsupportedValue can be safely passed cross
// threads.
TEST_F(CrossThreadStyleValueTest, PassUnsupportedValueCrossThread) {}

TEST_F(CrossThreadStyleValueTest, CrossThreadUnsupportedValueToCSSStyleValue) {}

TEST_F(CrossThreadStyleValueTest, PassUnparsedValueCrossThread) {}

TEST_F(CrossThreadStyleValueTest, CrossThreadUnparsedValueToCSSStyleValue) {}

TEST_F(CrossThreadStyleValueTest, PassKeywordValueCrossThread) {}

TEST_F(CrossThreadStyleValueTest, CrossThreadKeywordValueToCSSStyleValue) {}

TEST_F(CrossThreadStyleValueTest, PassUnitValueCrossThread) {}

TEST_F(CrossThreadStyleValueTest, CrossThreadUnitValueToCSSStyleValue) {}

TEST_F(CrossThreadStyleValueTest, PassColorValueCrossThread) {}

TEST_F(CrossThreadStyleValueTest, CrossThreadColorValueToCSSStyleValue) {}

TEST_F(CrossThreadStyleValueTest, ComparingNullValues) {}

TEST_F(CrossThreadStyleValueTest, ComparingDifferentTypes) {}

TEST_F(CrossThreadStyleValueTest, ComparingCrossThreadKeywordValue) {}

TEST_F(CrossThreadStyleValueTest, ComparingCrossThreadUnitValue) {}

TEST_F(CrossThreadStyleValueTest, ComparingCrossThreadColorValue) {}

TEST_F(CrossThreadStyleValueTest, ComparingCrossThreadUnsupportedValue) {}

}  // namespace blink