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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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
5 #ifndef CONTENT_SHELL_UTILITY_MOJO_TEST_IMPL_H_
6 #define CONTENT_SHELL_UTILITY_MOJO_TEST_IMPL_H_
7
8 #include "content/common/mojo_test.mojom.h"
9 #include "mojo/public/cpp/bindings/strong_binding.h"
10
11 namespace content {
12
13 // A service for testing Mojo end-to-end within a sandbox.
14 class MojoTestImpl : public mojom::MojoTest {
15 public:
16 static void CreateMojoTestImpl(
17 mojo::InterfaceRequest<mojom::MojoTest> request);
18
19 private:
20 explicit MojoTestImpl(mojo::InterfaceRequest<mojom::MojoTest> request);
21 ~MojoTestImpl() override;
22
23 void MakeSharedBuffer(uint32_t size,
24 const MakeSharedBufferCallback& callback) override;
25
26 mojo::StrongBinding<mojom::MojoTest> binding_;
27
28 DISALLOW_COPY_AND_ASSIGN(MojoTestImpl);
29 };
30
31 } // namespace content
32
33 #endif // CONTENT_SHELL_UTILITY_MOJO_TEST_IMPL_H_
OLDNEW
« 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