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

Side by Side Diff: content/shell/utility/mojo_test_impl.cc

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
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 #include "content/shell/utility/mojo_test_impl.h"
6
7 #include <utility>
8
9 #include "mojo/public/cpp/system/buffer.h"
10
11 namespace content {
12
13 // static
14 void MojoTestImpl::CreateMojoTestImpl(
15 mojo::InterfaceRequest<mojom::MojoTest> request) {
16 new MojoTestImpl(std::move(request));
17 }
18
19 MojoTestImpl::MojoTestImpl(mojo::InterfaceRequest<mojom::MojoTest> request)
20 : binding_(this, std::move(request)) {}
21
22 MojoTestImpl::~MojoTestImpl() {}
23
24 void MojoTestImpl::MakeSharedBuffer(uint32_t size,
25 const MakeSharedBufferCallback& callback) {
26 mojo::ScopedSharedBufferHandle handle;
27 MojoResult result = mojo::CreateSharedBuffer(nullptr, size, &handle);
28 LOG(INFO) << "mojo::CreateSharedBuffer result: " << result;
29 callback.Run(std::move(handle));
30 }
31
32
33 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/utility/mojo_test_impl.h ('k') | content/shell/utility/shell_content_utility_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698