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

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

Issue 169463012: Mojo: Add Dispatcher::{DuplicateBufferHandle,MapBuffer} methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « mojo/system/core_impl.cc ('k') | mojo/system/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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/system/core_impl.h" 5 #include "mojo/system/core_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/threading/platform_thread.h" 10 #include "base/threading/platform_thread.h"
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 // Complete the two-phase read. 867 // Complete the two-phase read.
868 EXPECT_EQ('x', static_cast<const char*>(read_ptr)[0]); 868 EXPECT_EQ('x', static_cast<const char*>(read_ptr)[0]);
869 EXPECT_EQ(MOJO_RESULT_OK, core()->EndReadData(ch, 1)); 869 EXPECT_EQ(MOJO_RESULT_OK, core()->EndReadData(ch, 1));
870 870
871 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_passing[0])); 871 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_passing[0]));
872 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_passing[1])); 872 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_passing[1]));
873 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(ph)); 873 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(ph));
874 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(ch)); 874 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(ch));
875 } 875 }
876 876
877 // TODO(vtl): Test |DuplicateBufferHandle()| and |MapBuffer()|.
878
877 } // namespace 879 } // namespace
878 } // namespace system 880 } // namespace system
879 } // namespace mojo 881 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/system/core_impl.cc ('k') | mojo/system/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698