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

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

Issue 1864293002: Convert //ppapi to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nullptr Created 4 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/plugin_globals.h ('k') | ppapi/proxy/ppapi_command_buffer_proxy.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/memory/scoped_ptr.h" 5 #include "ppapi/proxy/plugin_resource_tracker.h"
6
6 #include "base/process/process.h" 7 #include "base/process/process.h"
7 #include "ppapi/proxy/mock_resource.h" 8 #include "ppapi/proxy/mock_resource.h"
8 #include "ppapi/proxy/plugin_dispatcher.h" 9 #include "ppapi/proxy/plugin_dispatcher.h"
9 #include "ppapi/proxy/plugin_resource_tracker.h"
10 #include "ppapi/proxy/ppapi_messages.h" 10 #include "ppapi/proxy/ppapi_messages.h"
11 #include "ppapi/proxy/ppapi_proxy_test.h" 11 #include "ppapi/proxy/ppapi_proxy_test.h"
12 #include "ppapi/shared_impl/proxy_lock.h" 12 #include "ppapi/shared_impl/proxy_lock.h"
13 13
14 namespace ppapi { 14 namespace ppapi {
15 namespace proxy { 15 namespace proxy {
16 16
17 namespace { 17 namespace {
18 18
19 // Object so we know when a resource has been released. 19 // Object so we know when a resource has been released.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 resource_tracker().PluginResourceForHostResource(serialized)); 62 resource_tracker().PluginResourceForHostResource(serialized));
63 63
64 // Releasing the resource should have freed it. 64 // Releasing the resource should have freed it.
65 resource_tracker().ReleaseResource(plugin_resource); 65 resource_tracker().ReleaseResource(plugin_resource);
66 EXPECT_EQ(0, TrackedMockResource::tracked_alive_count); 66 EXPECT_EQ(0, TrackedMockResource::tracked_alive_count);
67 EXPECT_EQ(0, resource_tracker().PluginResourceForHostResource(serialized)); 67 EXPECT_EQ(0, resource_tracker().PluginResourceForHostResource(serialized));
68 } 68 }
69 69
70 } // namespace proxy 70 } // namespace proxy
71 } // namespace ppapi 71 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_globals.h ('k') | ppapi/proxy/ppapi_command_buffer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698