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

Side by Side Diff: content/renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
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 <map> 5 #include <map>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/renderer/pepper/mock_plugin_delegate.h"
10 #include "content/renderer/pepper/pepper_device_enumeration_host_helper.h" 11 #include "content/renderer/pepper/pepper_device_enumeration_host_helper.h"
11 #include "ppapi/c/pp_errors.h" 12 #include "ppapi/c/pp_errors.h"
12 #include "ppapi/host/host_message_context.h" 13 #include "ppapi/host/host_message_context.h"
13 #include "ppapi/host/ppapi_host.h" 14 #include "ppapi/host/ppapi_host.h"
14 #include "ppapi/host/resource_host.h" 15 #include "ppapi/host/resource_host.h"
15 #include "ppapi/proxy/ppapi_message_utils.h" 16 #include "ppapi/proxy/ppapi_message_utils.h"
16 #include "ppapi/proxy/ppapi_messages.h" 17 #include "ppapi/proxy/ppapi_messages.h"
17 #include "ppapi/proxy/resource_message_params.h" 18 #include "ppapi/proxy/resource_message_params.h"
18 #include "ppapi/proxy/resource_message_test_sink.h" 19 #include "ppapi/proxy/resource_message_test_sink.h"
19 #include "ppapi/shared_impl/ppapi_permissions.h" 20 #include "ppapi/shared_impl/ppapi_permissions.h"
20 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
21 #include "webkit/plugins/ppapi/mock_plugin_delegate.h"
22 22
23 namespace content { 23 namespace content {
24 24
25 namespace { 25 namespace {
26 26
27 class TestPluginDelegate : public webkit::ppapi::MockPluginDelegate { 27 class TestPluginDelegate : public webkit::ppapi::MockPluginDelegate {
28 public: 28 public:
29 TestPluginDelegate() : last_used_id_(0) { 29 TestPluginDelegate() : last_used_id_(0) {
30 } 30 }
31 31
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 ppapi::host::HostMessageContext context(call_params); 248 ppapi::host::HostMessageContext context(call_params);
249 int32_t result = PP_ERROR_FAILED; 249 int32_t result = PP_ERROR_FAILED;
250 ASSERT_TRUE(device_enumeration_.HandleResourceMessage( 250 ASSERT_TRUE(device_enumeration_.HandleResourceMessage(
251 msg, &context, &result)); 251 msg, &context, &result));
252 EXPECT_EQ(PP_OK, result); 252 EXPECT_EQ(PP_OK, result);
253 253
254 EXPECT_EQ(0U, delegate_.GetRegisteredCallbackCount()); 254 EXPECT_EQ(0U, delegate_.GetRegisteredCallbackCount());
255 } 255 }
256 256
257 } // namespace content 257 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_device_enumeration_host_helper.cc ('k') | content/renderer/pepper/pepper_file_chooser_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698