| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/nacl/nacl_ipc_adapter.h" | 5 #include "components/nacl/loader/nacl_ipc_adapter.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/message_loop/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
| 12 #include "base/threading/platform_thread.h" | 12 #include "base/threading/platform_thread.h" |
| 13 #include "base/threading/simple_thread.h" | 13 #include "base/threading/simple_thread.h" |
| 14 #include "ipc/ipc_test_sink.h" | 14 #include "ipc/ipc_test_sink.h" |
| 15 #include "native_client/src/trusted/desc/nacl_desc_custom.h" | 15 #include "native_client/src/trusted/desc/nacl_desc_custom.h" |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 EXPECT_EQ(NACL_ABI_O_RDONLY, | 348 EXPECT_EQ(NACL_ABI_O_RDONLY, |
| 349 TranslatePepperFileReadWriteOpenFlagsForTesting( | 349 TranslatePepperFileReadWriteOpenFlagsForTesting( |
| 350 PP_FILEOPENFLAG_CREATE)); | 350 PP_FILEOPENFLAG_CREATE)); |
| 351 EXPECT_EQ(NACL_ABI_O_RDONLY, | 351 EXPECT_EQ(NACL_ABI_O_RDONLY, |
| 352 TranslatePepperFileReadWriteOpenFlagsForTesting( | 352 TranslatePepperFileReadWriteOpenFlagsForTesting( |
| 353 PP_FILEOPENFLAG_TRUNCATE)); | 353 PP_FILEOPENFLAG_TRUNCATE)); |
| 354 EXPECT_EQ(NACL_ABI_O_RDONLY, | 354 EXPECT_EQ(NACL_ABI_O_RDONLY, |
| 355 TranslatePepperFileReadWriteOpenFlagsForTesting( | 355 TranslatePepperFileReadWriteOpenFlagsForTesting( |
| 356 PP_FILEOPENFLAG_EXCLUSIVE)); | 356 PP_FILEOPENFLAG_EXCLUSIVE)); |
| 357 } | 357 } |
| OLD | NEW |