chromium/third_party/blink/renderer/core/css/parser/css_lazy_parsing_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 "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/css/css_style_sheet.h"
#include "third_party/blink/renderer/core/css/parser/css_lazy_parsing_state.h"
#include "third_party/blink/renderer/core/css/parser/css_parser.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_context.h"
#include "third_party/blink/renderer/core/css/style_rule.h"
#include "third_party/blink/renderer/core/css/style_sheet_contents.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "third_party/blink/renderer/core/loader/document_loader.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/core/testing/dummy_page_holder.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/heap/thread_state.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"

namespace blink {

#if defined(__SSE2__) || defined(__ARM_NEON__)

class CSSLazyParsingTest : public testing::Test {};

TEST_F(CSSLazyParsingTest, Simple) {}

TEST_F(CSSLazyParsingTest, LazyParseBeforeAfter) {}

// Regression test for crbug.com/660290 where we change the underlying owning
// document from the StyleSheetContents without changing the UseCounter. This
// test ensures that the new UseCounter is used when doing new parsing work.
TEST_F(CSSLazyParsingTest, ChangeDocuments) {}

TEST_F(CSSLazyParsingTest, NoLazyParsingForNestedRules) {}

// A version of NoLazyParsingForNestedRules where CSSNestedDeclarations
// is disabled. Can be removed when the CSSNestedDeclarations is removed.
TEST_F(CSSLazyParsingTest,
       NoLazyParsingForNestedRules_CSSNestedDeclarationsDisabled) {}

#endif  // SIMD

}  // namespace blink