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 <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
5 #include <map> | 8 #include <map> |
6 | 9 |
7 #include "base/basictypes.h" | |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
10 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
11 #include "content/renderer/pepper/pepper_device_enumeration_host_helper.h" | 14 #include "content/renderer/pepper/pepper_device_enumeration_host_helper.h" |
12 #include "ppapi/c/pp_errors.h" | 15 #include "ppapi/c/pp_errors.h" |
13 #include "ppapi/host/host_message_context.h" | 16 #include "ppapi/host/host_message_context.h" |
14 #include "ppapi/host/ppapi_host.h" | 17 #include "ppapi/host/ppapi_host.h" |
15 #include "ppapi/host/resource_host.h" | 18 #include "ppapi/host/resource_host.h" |
16 #include "ppapi/proxy/ppapi_message_utils.h" | 19 #include "ppapi/proxy/ppapi_message_utils.h" |
17 #include "ppapi/proxy/ppapi_messages.h" | 20 #include "ppapi/proxy/ppapi_messages.h" |
18 #include "ppapi/proxy/resource_message_params.h" | 21 #include "ppapi/proxy/resource_message_params.h" |
19 #include "ppapi/proxy/resource_message_test_sink.h" | 22 #include "ppapi/proxy/resource_message_test_sink.h" |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 ppapi::host::HostMessageContext context(call_params); | 229 ppapi::host::HostMessageContext context(call_params); |
227 int32_t result = PP_ERROR_FAILED; | 230 int32_t result = PP_ERROR_FAILED; |
228 ASSERT_TRUE( | 231 ASSERT_TRUE( |
229 device_enumeration_.HandleResourceMessage(msg, &context, &result)); | 232 device_enumeration_.HandleResourceMessage(msg, &context, &result)); |
230 EXPECT_EQ(PP_OK, result); | 233 EXPECT_EQ(PP_OK, result); |
231 | 234 |
232 EXPECT_EQ(0U, delegate_.GetRegisteredCallbackCount()); | 235 EXPECT_EQ(0U, delegate_.GetRegisteredCallbackCount()); |
233 } | 236 } |
234 | 237 |
235 } // namespace content | 238 } // namespace content |
OLD | NEW |