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

Side by Side Diff: mojo/edk/system/platform_handle_dispatcher_unittest.cc

Issue 1942423002: EDK: Move DispatcherTransport to handle_transport.*. (Closed) Base URL: https://github.com/domokit/mojo.git@work789_edk_handle_9
Patch Set: rebased Created 4 years, 7 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
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/platform_handle_dispatcher.h" 5 #include "mojo/edk/system/platform_handle_dispatcher.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "mojo/edk/platform/platform_handle_utils_posix.h" 11 #include "mojo/edk/platform/platform_handle_utils_posix.h"
12 #include "mojo/edk/system/handle_transport.h"
12 #include "mojo/edk/system/test/scoped_test_dir.h" 13 #include "mojo/edk/system/test/scoped_test_dir.h"
13 #include "mojo/edk/util/scoped_file.h" 14 #include "mojo/edk/util/scoped_file.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 16
16 using mojo::platform::FILEFromPlatformHandle; 17 using mojo::platform::FILEFromPlatformHandle;
17 using mojo::platform::PlatformHandleFromFILE; 18 using mojo::platform::PlatformHandleFromFILE;
18 using mojo::platform::ScopedPlatformHandle; 19 using mojo::platform::ScopedPlatformHandle;
19 using mojo::util::RefPtr; 20 using mojo::util::RefPtr;
20 21
21 namespace mojo { 22 namespace mojo {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 EXPECT_EQ(sizeof(kFooBar), 123 EXPECT_EQ(sizeof(kFooBar),
123 fread(read_buffer, 1, sizeof(read_buffer), fp.get())); 124 fread(read_buffer, 1, sizeof(read_buffer), fp.get()));
124 EXPECT_STREQ(kFooBar, read_buffer); 125 EXPECT_STREQ(kFooBar, read_buffer);
125 126
126 EXPECT_EQ(MOJO_RESULT_OK, dispatcher->Close()); 127 EXPECT_EQ(MOJO_RESULT_OK, dispatcher->Close());
127 } 128 }
128 129
129 } // namespace 130 } // namespace
130 } // namespace system 131 } // namespace system
131 } // namespace mojo 132 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/multiprocess_message_pipe_unittest.cc ('k') | mojo/edk/system/remote_data_pipe_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698