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

Side by Side Diff: mojo/system/shared_buffer_dispatcher_unittest.cc

Issue 623883002: Revert "Move mojo edk into mojo/edk" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « mojo/system/shared_buffer_dispatcher.cc ('k') | mojo/system/simple_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/edk/system/shared_buffer_dispatcher.h" 5 #include "mojo/system/shared_buffer_dispatcher.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "mojo/edk/embedder/platform_shared_buffer.h" 11 #include "mojo/embedder/platform_shared_buffer.h"
12 #include "mojo/edk/embedder/simple_platform_support.h" 12 #include "mojo/embedder/simple_platform_support.h"
13 #include "mojo/edk/system/dispatcher.h" 13 #include "mojo/system/dispatcher.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace system { 17 namespace system {
18 namespace { 18 namespace {
19 19
20 // NOTE(vtl): There's currently not much to test for in 20 // NOTE(vtl): There's currently not much to test for in
21 // |SharedBufferDispatcher::ValidateCreateOptions()|, but the tests should be 21 // |SharedBufferDispatcher::ValidateCreateOptions()|, but the tests should be
22 // expanded if/when options are added, so I've kept the general form of the 22 // expanded if/when options are added, so I've kept the general form of the
23 // tests from data_pipe_unittest.cc. 23 // tests from data_pipe_unittest.cc.
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT, 290 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
291 dispatcher->MapBuffer(0, 0, MOJO_MAP_BUFFER_FLAG_NONE, &mapping)); 291 dispatcher->MapBuffer(0, 0, MOJO_MAP_BUFFER_FLAG_NONE, &mapping));
292 EXPECT_FALSE(mapping); 292 EXPECT_FALSE(mapping);
293 293
294 EXPECT_EQ(MOJO_RESULT_OK, dispatcher->Close()); 294 EXPECT_EQ(MOJO_RESULT_OK, dispatcher->Close());
295 } 295 }
296 296
297 } // namespace 297 } // namespace
298 } // namespace system 298 } // namespace system
299 } // namespace mojo 299 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/system/shared_buffer_dispatcher.cc ('k') | mojo/system/simple_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698