blob: c3527c4f11c10df38aebea8207739392d94c9394 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/test/scoped_feature_list.h"
#include "content/public/test/render_view_test.h"
#include "ui/native_theme/native_theme_features.h"
namespace content {
class FluentScrollbarImplTest : public RenderViewTest {
public:
explicit FluentScrollbarImplTest() {
feature_list_.InitAndEnableFeature(features::kFluentScrollbar);
}
~FluentScrollbarImplTest() override = default;
private:
base::test::ScopedFeatureList feature_list_;
};
// Ensures that RenderViewTest based tests can properly initialize when Fluent
// scrollbars are enabled.
TEST_F(FluentScrollbarImplTest, FluentScrollbarsInitializeProperly) {
EXPECT_TRUE(ui::IsFluentScrollbarEnabled());
}
} // namespace content