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

Unified Diff: mojo/system/shared_buffer_dispatcher_unittest.cc

Issue 219023010: Mojo: RawSharedBuffer::Mapping -> RawSharedBufferMapping. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win Created 6 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 | « mojo/system/shared_buffer_dispatcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/shared_buffer_dispatcher_unittest.cc
diff --git a/mojo/system/shared_buffer_dispatcher_unittest.cc b/mojo/system/shared_buffer_dispatcher_unittest.cc
index ecd055cf5f3fc676a4542b0c099acc8cca6b16da..36cee14d0fd6b0336d5d255534ddb5a41ec00892 100644
--- a/mojo/system/shared_buffer_dispatcher_unittest.cc
+++ b/mojo/system/shared_buffer_dispatcher_unittest.cc
@@ -101,7 +101,7 @@ TEST(SharedBufferDispatcherTest, CreateAndMapBuffer) {
EXPECT_EQ(Dispatcher::kTypeSharedBuffer, dispatcher->GetType());
// Make a couple of mappings.
- scoped_ptr<RawSharedBuffer::Mapping> mapping1;
+ scoped_ptr<RawSharedBufferMapping> mapping1;
EXPECT_EQ(MOJO_RESULT_OK,
dispatcher->MapBuffer(0, 100, MOJO_MAP_BUFFER_FLAG_NONE,
&mapping1));
@@ -111,7 +111,7 @@ TEST(SharedBufferDispatcherTest, CreateAndMapBuffer) {
// Write something.
static_cast<char*>(mapping1->base())[50] = 'x';
- scoped_ptr<RawSharedBuffer::Mapping> mapping2;
+ scoped_ptr<RawSharedBufferMapping> mapping2;
EXPECT_EQ(MOJO_RESULT_OK,
dispatcher->MapBuffer(50, 50, MOJO_MAP_BUFFER_FLAG_NONE,
&mapping2));
@@ -140,7 +140,7 @@ TEST(SharedBufferDispatcher, DuplicateBufferHandle) {
&dispatcher1));
// Map and write something.
- scoped_ptr<RawSharedBuffer::Mapping> mapping;
+ scoped_ptr<RawSharedBufferMapping> mapping;
EXPECT_EQ(MOJO_RESULT_OK,
dispatcher1->MapBuffer(0, 100, MOJO_MAP_BUFFER_FLAG_NONE,
&mapping));
@@ -198,7 +198,7 @@ TEST(SharedBufferDispatcherTest, MapBufferInvalidArguments) {
SharedBufferDispatcher::Create(validated_options, 100,
&dispatcher));
- scoped_ptr<RawSharedBuffer::Mapping> mapping;
+ scoped_ptr<RawSharedBufferMapping> mapping;
EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
dispatcher->MapBuffer(0, 101, MOJO_MAP_BUFFER_FLAG_NONE, &mapping));
EXPECT_FALSE(mapping);
« no previous file with comments | « mojo/system/shared_buffer_dispatcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698