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

Unified Diff: content/shell/utility/mojo_test_impl.h

Issue 1799923003: Add an end-to-end test that excercises Mojo with a sandbox. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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
« no previous file with comments | « content/shell/BUILD.gn ('k') | content/shell/utility/mojo_test_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/utility/mojo_test_impl.h
diff --git a/content/shell/utility/mojo_test_impl.h b/content/shell/utility/mojo_test_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..0a66855602043a7da4657cfa534c0b60c7505184
--- /dev/null
+++ b/content/shell/utility/mojo_test_impl.h
@@ -0,0 +1,33 @@
+// 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 CONTENT_SHELL_UTILITY_MOJO_TEST_IMPL_H_
+#define CONTENT_SHELL_UTILITY_MOJO_TEST_IMPL_H_
+
+#include "content/common/mojo_test.mojom.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+
+namespace content {
+
+// A service for testing Mojo end-to-end within a sandbox.
+class MojoTestImpl : public mojom::MojoTest {
+ public:
+ static void CreateMojoTestImpl(
+ mojo::InterfaceRequest<mojom::MojoTest> request);
+
+ private:
+ explicit MojoTestImpl(mojo::InterfaceRequest<mojom::MojoTest> request);
+ ~MojoTestImpl() override;
+
+ void MakeSharedBuffer(uint32_t size,
+ const MakeSharedBufferCallback& callback) override;
+
+ mojo::StrongBinding<mojom::MojoTest> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(MojoTestImpl);
+};
+
+} // namespace content
+
+#endif // CONTENT_SHELL_UTILITY_MOJO_TEST_IMPL_H_
« no previous file with comments | « content/shell/BUILD.gn ('k') | content/shell/utility/mojo_test_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698