chromium/third_party/blink/renderer/core/css/invalidation/invalidation_set_test.cc

// Copyright 2014 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/invalidation/invalidation_set.h"

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/testing/dummy_page_holder.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"

namespace blink {
namespace {

BackingType;
BackingFlags;
Backing;

template <BackingType type>
bool HasAny(const Backing<type>& backing,
            const BackingFlags& flags,
            std::initializer_list<const char*> args) {}

template <BackingType type>
bool HasAll(const Backing<type>& backing,
            const BackingFlags& flags,
            std::initializer_list<const char*> args) {}

TEST(InvalidationSetTest, Backing_Create) {}

TEST(InvalidationSetTest, Backing_Add) {}

TEST(InvalidationSetTest, Backing_AddSame) {}

TEST(InvalidationSetTest, Backing_Independence) {}

TEST(InvalidationSetTest, Backing_ClearContains) {}

TEST(InvalidationSetTest, Backing_BackingIsEmpty) {}

TEST(InvalidationSetTest, Backing_IsEmpty) {}

TEST(InvalidationSetTest, Backing_Iterator) {}

TEST(InvalidationSetTest, Backing_GetString) {}

TEST(InvalidationSetTest, Backing_GetHashSet) {}

TEST(InvalidationSetTest, ClassInvalidatesElement) {}

TEST(InvalidationSetTest, AttributeInvalidatesElement) {}

// Once we setWholeSubtreeInvalid, we should not keep the HashSets.
TEST(InvalidationSetTest, SubtreeInvalid_AddBefore) {}

// Don't (re)create HashSets if we've already setWholeSubtreeInvalid.
TEST(InvalidationSetTest, SubtreeInvalid_AddAfter) {}

// No need to keep the HashSets when combining with a wholeSubtreeInvalid set.
TEST(InvalidationSetTest, SubtreeInvalid_Combine_1) {}

// No need to add HashSets from combining set when we already have
// wholeSubtreeInvalid.
TEST(InvalidationSetTest, SubtreeInvalid_Combine_2) {}

TEST(InvalidationSetTest, SubtreeInvalid_AddCustomPseudoBefore) {}

TEST(InvalidationSetTest, SelfInvalidationSet_Combine) {}

}  // namespace
}  // namespace blink