diff options
Diffstat (limited to 'ppapi/tests/test_var.cc')
-rw-r--r-- | ppapi/tests/test_var.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ppapi/tests/test_var.cc b/ppapi/tests/test_var.cc index 27c4882..0fedb13 100644 --- a/ppapi/tests/test_var.cc +++ b/ppapi/tests/test_var.cc @@ -27,7 +27,7 @@ REGISTER_TEST_CASE(Var); bool TestVar::Init() { var_interface_ = static_cast<const PPB_Var*>( pp::Module::Get()->GetBrowserInterface(PPB_VAR_INTERFACE)); - return var_interface_ && InitTestingInterface(); + return var_interface_ && CheckTestingInterface(); } void TestVar::RunTests(const std::string& filter) { @@ -136,6 +136,7 @@ std::string TestVar::TestNullInputInUtf8Conversion() { if (result == NULL) { return "Expected a non-null result for 0-lengthed string from VarToUtf8."; } + var_interface_->Release(converted_string); // Should not crash, and make an empty string. const char* null_string = NULL; |