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

Unified Diff: blimp/client/test/compositor/test_blimp_embedder_compositor.h

Issue 2320923002: Add a full Blimp integration test. (Closed)
Patch Set: Fix build break with chrome embedder Created 4 years, 3 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: blimp/client/test/compositor/test_blimp_embedder_compositor.h
diff --git a/blimp/client/test/compositor/test_blimp_embedder_compositor.h b/blimp/client/test/compositor/test_blimp_embedder_compositor.h
new file mode 100644
index 0000000000000000000000000000000000000000..ce4c8ecc0c52180b16a8826dc705713b69ccc397
--- /dev/null
+++ b/blimp/client/test/compositor/test_blimp_embedder_compositor.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 BLIMP_CLIENT_TEST_COMPOSITOR_TEST_BLIMP_EMBEDDER_COMPOSITOR_H_
+#define BLIMP_CLIENT_TEST_COMPOSITOR_TEST_BLIMP_EMBEDDER_COMPOSITOR_H_
+
+#include "base/callback.h"
+#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
+#include "blimp/client/support/compositor/blimp_embedder_compositor.h"
+
+class SkBitmap;
+
+namespace cc {
+class CopyOutputResult;
+} // namespace cc
+
+namespace blimp {
+namespace client {
+class CompositorDependencies;
+
+// An implementation of the BlimpEmbedderCompositor that supplies a
+// ContextProvider that is not backed by a platform specific widget. It is not
+// meant to be used to actually display content.
+class TestBlimpEmbedderCompositor : public BlimpEmbedderCompositor {
+ public:
+ explicit TestBlimpEmbedderCompositor(
+ CompositorDependencies* compositor_dependencies);
+ ~TestBlimpEmbedderCompositor() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TestBlimpEmbedderCompositor);
+};
+
+} // namespace client
+} // namespace blimp
+
+#endif // BLIMP_CLIENT_TEST_COMPOSITOR_TEST_BLIMP_EMBEDDER_COMPOSITOR_H_

Powered by Google App Engine
This is Rietveld 408576698