OLD | NEW |
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 "components/nacl/loader/nacl_ipc_adapter.h" | 5 #include "components/nacl/loader/nacl_ipc_adapter.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string.h> | 9 #include <string.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "base/thread_task_runner_handle.h" | |
14 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
15 #include "base/threading/simple_thread.h" | 14 #include "base/threading/simple_thread.h" |
| 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "ipc/ipc_test_sink.h" | 16 #include "ipc/ipc_test_sink.h" |
17 #include "native_client/src/public/nacl_desc_custom.h" | 17 #include "native_client/src/public/nacl_desc_custom.h" |
18 #include "native_client/src/trusted/service_runtime/include/sys/fcntl.h" | 18 #include "native_client/src/trusted/service_runtime/include/sys/fcntl.h" |
19 #include "ppapi/c/ppb_file_io.h" | 19 #include "ppapi/c/ppb_file_io.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 class NaClIPCAdapterTest : public testing::Test { | 24 class NaClIPCAdapterTest : public testing::Test { |
25 public: | 25 public: |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 EXPECT_EQ(NACL_ABI_O_RDONLY, | 350 EXPECT_EQ(NACL_ABI_O_RDONLY, |
351 TranslatePepperFileReadWriteOpenFlagsForTesting( | 351 TranslatePepperFileReadWriteOpenFlagsForTesting( |
352 PP_FILEOPENFLAG_CREATE)); | 352 PP_FILEOPENFLAG_CREATE)); |
353 EXPECT_EQ(NACL_ABI_O_RDONLY, | 353 EXPECT_EQ(NACL_ABI_O_RDONLY, |
354 TranslatePepperFileReadWriteOpenFlagsForTesting( | 354 TranslatePepperFileReadWriteOpenFlagsForTesting( |
355 PP_FILEOPENFLAG_TRUNCATE)); | 355 PP_FILEOPENFLAG_TRUNCATE)); |
356 EXPECT_EQ(NACL_ABI_O_RDONLY, | 356 EXPECT_EQ(NACL_ABI_O_RDONLY, |
357 TranslatePepperFileReadWriteOpenFlagsForTesting( | 357 TranslatePepperFileReadWriteOpenFlagsForTesting( |
358 PP_FILEOPENFLAG_EXCLUSIVE)); | 358 PP_FILEOPENFLAG_EXCLUSIVE)); |
359 } | 359 } |
OLD | NEW |