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

Side by Side Diff: ppapi/proxy/device_enumeration_resource_helper_unittest.cc

Issue 1097393007: Update {virtual,override} to follow C++11 style in ppapi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split off one file into separate review. Created 5 years, 8 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
« no previous file with comments | « ppapi/proxy/compositor_resource.h ('k') | ppapi/proxy/dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/proxy/connection.h" 8 #include "ppapi/proxy/connection.h"
9 #include "ppapi/proxy/device_enumeration_resource_helper.h" 9 #include "ppapi/proxy/device_enumeration_resource_helper.h"
10 #include "ppapi/proxy/plugin_message_filter.h" 10 #include "ppapi/proxy/plugin_message_filter.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 return result; 64 return result;
65 } 65 }
66 66
67 class TestResource : public PluginResource { 67 class TestResource : public PluginResource {
68 public: 68 public:
69 TestResource(Connection connection, PP_Instance instance) 69 TestResource(Connection connection, PP_Instance instance)
70 : PluginResource(connection, instance), 70 : PluginResource(connection, instance),
71 device_enumeration_(this) { 71 device_enumeration_(this) {
72 } 72 }
73 73
74 virtual ~TestResource() {} 74 ~TestResource() override {}
75 75
76 virtual void OnReplyReceived(const ResourceMessageReplyParams& params, 76 void OnReplyReceived(const ResourceMessageReplyParams& params,
77 const IPC::Message& msg) override { 77 const IPC::Message& msg) override {
78 if (!device_enumeration_.HandleReply(params, msg)) 78 if (!device_enumeration_.HandleReply(params, msg))
79 PluginResource::OnReplyReceived(params, msg); 79 PluginResource::OnReplyReceived(params, msg);
80 } 80 }
81 81
82 DeviceEnumerationResourceHelper& device_enumeration() { 82 DeviceEnumerationResourceHelper& device_enumeration() {
83 return device_enumeration_; 83 return device_enumeration_;
84 } 84 }
85 85
86 private: 86 private:
87 DeviceEnumerationResourceHelper device_enumeration_; 87 DeviceEnumerationResourceHelper device_enumeration_;
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 PluginMessageFilter::DispatchResourceReplyForTest( 395 PluginMessageFilter::DispatchResourceReplyForTest(
396 reply_params, 396 reply_params,
397 PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange( 397 PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange(
398 callback_id2, data)); 398 callback_id2, data));
399 } 399 }
400 EXPECT_FALSE(helper2.called()); 400 EXPECT_FALSE(helper2.called());
401 } 401 }
402 402
403 } // namespace proxy 403 } // namespace proxy
404 } // namespace ppapi 404 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/compositor_resource.h ('k') | ppapi/proxy/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698