Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1082)

Unified Diff: components/display_compositor/display_compositor_test_suite.h

Issue 1902463002: Introduce components/display_compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove bot changes. Will do in a separate CL Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/display_compositor/display_compositor_test_suite.h
diff --git a/components/display_compositor/display_compositor_test_suite.h b/components/display_compositor/display_compositor_test_suite.h
new file mode 100644
index 0000000000000000000000000000000000000000..75faf4dcee365135edac728e83a6ce517aee43d5
--- /dev/null
+++ b/components/display_compositor/display_compositor_test_suite.h
@@ -0,0 +1,39 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_DISPLAY_COMPOSITOR_DISPLAY_COMPOSITOR_TEST_SUITE_H_
+#define COMPONENTS_DISPLAY_COMPOSITOR_DISPLAY_COMPOSITOR_TEST_SUITE_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "base/test/test_discardable_memory_allocator.h"
+#include "base/test/test_suite.h"
+
+namespace base {
+class MessageLoop;
+}
+
+namespace display_compositor {
+
+class DisplayCompositorTestSuite : public base::TestSuite {
+ public:
+ DisplayCompositorTestSuite(int argc, char** argv);
+ ~DisplayCompositorTestSuite() override;
+
+ protected:
+ // Overridden from base::TestSuite:
+ void Initialize() override;
+ void Shutdown() override;
+
+ private:
+ std::unique_ptr<base::MessageLoop> message_loop_;
+
+ base::TestDiscardableMemoryAllocator discardable_memory_allocator_;
+ DISALLOW_COPY_AND_ASSIGN(DisplayCompositorTestSuite);
+};
+
+} // namespace display_compositor
+
+#endif // COMPONENTS_DISPLAY_COMPOSITOR_DISPLAY_COMPOSITOR_TEST_SUITE_H_

Powered by Google App Engine
This is Rietveld 408576698