blob: 5a12222fc85b501eae5b6dcfc7742aaea824295a [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_TEST_CONTENT_TEST_SUITE_H_
#define CONTENT_TEST_CONTENT_TEST_SUITE_H_
#include "base/test/scoped_feature_list.h"
#include "base/test/test_discardable_memory_allocator.h"
#include "build/build_config.h"
#include "content/public/test/content_test_suite_base.h"
#if BUILDFLAG(IS_WIN)
#include "base/win/scoped_com_initializer.h"
#endif
namespace content {
class ContentTestSuite : public ContentTestSuiteBase {
public:
ContentTestSuite(int argc, char** argv);
ContentTestSuite(const ContentTestSuite&) = delete;
ContentTestSuite& operator=(const ContentTestSuite&) = delete;
~ContentTestSuite() override;
protected:
void Initialize() override;
private:
[[maybe_unused]] base::test::ScopedFeatureList revert_field_trial_features_;
base::TestDiscardableMemoryAllocator discardable_memory_allocator_;
#if BUILDFLAG(IS_WIN)
base::win::ScopedCOMInitializer com_initializer_;
#endif
};
} // namespace content
#endif // CONTENT_TEST_CONTENT_TEST_SUITE_H_