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

Unified Diff: webkit/plugins/ppapi/callbacks_unittest.cc

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 9 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 side-by-side diff with in-line comments
Download patch
Index: webkit/plugins/ppapi/callbacks_unittest.cc
diff --git a/webkit/plugins/ppapi/callbacks_unittest.cc b/webkit/plugins/ppapi/callbacks_unittest.cc
index 9d561a282cf78b809e628d0b6599f46d500e3b50..4cd80845d98f40cc77e683cb60945d308a9f4873 100644
--- a/webkit/plugins/ppapi/callbacks_unittest.cc
+++ b/webkit/plugins/ppapi/callbacks_unittest.cc
@@ -202,13 +202,13 @@ TEST_F(CallbackResourceTest, AbortOnNoRef) {
// Kill resource #1, spin the message loop to run posted calls, and check that
// things are in the expected states.
- resource_tracker->UnrefResource(resource_1_id);
+ resource_tracker->ReleaseResource(resource_1_id);
MessageLoop::current()->RunAllPending();
resource_1->CheckFinalState();
resource_2->CheckIntermediateState();
// Kill resource #2.
- resource_tracker->UnrefResource(resource_2_id);
+ resource_tracker->ReleaseResource(resource_2_id);
MessageLoop::current()->RunAllPending();
resource_1->CheckFinalState();
resource_2->CheckFinalState();
@@ -228,7 +228,7 @@ TEST_F(CallbackResourceTest, Resurrection) {
// Unref it, spin the message loop to run posted calls, and check that things
// are in the expected states.
- resource_tracker->UnrefResource(resource_id);
+ resource_tracker->ReleaseResource(resource_id);
MessageLoop::current()->RunAllPending();
resource->CheckFinalState();
@@ -238,7 +238,7 @@ TEST_F(CallbackResourceTest, Resurrection) {
resource->CheckFinalState();
// Unref it again and do the same.
- resource_tracker->UnrefResource(new_resource_id);
+ resource_tracker->ReleaseResource(new_resource_id);
MessageLoop::current()->RunAllPending();
resource->CheckFinalState();

Powered by Google App Engine
This is Rietveld 408576698