test_suite.h 950 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_COMPOSITOR_TEST_TEST_SUITE_H_
  5. #define UI_COMPOSITOR_TEST_TEST_SUITE_H_
  6. #include "base/test/test_suite.h"
  7. #include "build/build_config.h"
  8. #if BUILDFLAG(IS_WIN)
  9. #include "base/win/scoped_com_initializer.h"
  10. #endif
  11. namespace ui {
  12. namespace test {
  13. class CompositorTestSuite : public base::TestSuite {
  14. public:
  15. CompositorTestSuite(int argc, char** argv);
  16. CompositorTestSuite(const CompositorTestSuite&) = delete;
  17. CompositorTestSuite& operator=(const CompositorTestSuite&) = delete;
  18. ~CompositorTestSuite() override;
  19. protected:
  20. // base::TestSuite:
  21. void Initialize() override;
  22. private:
  23. #if BUILDFLAG(IS_WIN)
  24. base::win::ScopedCOMInitializer com_initializer_;
  25. #endif
  26. };
  27. } // namespace test
  28. } // namespace ui
  29. #endif // UI_COMPOSITOR_TEST_TEST_SUITE_H_