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

Unified Diff: ppapi/tests/test_var.cc

Issue 7511026: Fix some egregious bugs in Var. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
« ppapi/cpp/var.h ('K') | « ppapi/cpp/var.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_var.cc
===================================================================
--- ppapi/tests/test_var.cc (revision 95308)
+++ ppapi/tests/test_var.cc (working copy)
@@ -64,6 +64,13 @@
ASSERT_EQ(NULL, result);
}
+ // Make sure we can assign a C++ object to itself and it stays alive.
+ {
+ pp::Var a("test");
+ a = a;
+ ASSERT_TRUE(a.AsString() == "test");
+ }
+
// Make sure nothing leaked.
ASSERT_TRUE(testing_interface_->GetLiveObjectsForInstance(
instance_->pp_instance()) == before_object);
« ppapi/cpp/var.h ('K') | « ppapi/cpp/var.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698