gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-


From: Rob Savoye
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-64-gc5d83bb
Date: Mon, 14 Feb 2011 18:01:23 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  c5d83bbd2e0f37564c192c2398f7940a670a5eee (commit)
      from  530df8347190fc3a858e058096140402d8dd8852 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=c5d83bbd2e0f37564c192c2398f7940a670a5eee


commit c5d83bbd2e0f37564c192c2398f7940a670a5eee
Author: Rob Savoye <address@hidden>
Date:   Mon Feb 14 11:01:11 2011 -0700

    update test case as parseInvoke() now returns a boost::shared_ptr<>

diff --git a/plugin/npapi/test.cpp b/plugin/npapi/test.cpp
index f81d46e..26a11d7 100644
--- a/plugin/npapi/test.cpp
+++ b/plugin/npapi/test.cpp
@@ -273,7 +273,7 @@ main(int , char **)
 
     // Parse an invoke message
     xml = "<invoke name=\"barbyfoo\" 
returntype=\"xml\"><arguments><string>barfoo</string><number>135.78</number></arguments></invoke>";
-    std::auto_ptr<plugin::ExternalInterface::invoke_t> invoke ( 
plugin::ExternalInterface::parseInvoke(xml) );
+    boost::shared_ptr<plugin::ExternalInterface::invoke_t> invoke ( 
plugin::ExternalInterface::parseInvoke(xml) );
     str = NPStringToString(NPVARIANT_TO_STRING(invoke->args[0].get()));
     if ((invoke->name == "barbyfoo") && (invoke->type == "xml")
         && (NPVARIANT_IS_STRING(invoke->args[0].get()))
@@ -288,7 +288,7 @@ main(int , char **)
 
     // Test for bug #31766
     xml = "<invoke name=\"reportFlashTiming\" 
returntype=\"xml\"><arguments><string>reportFlashTiming</string><object><property
 id=\"5\"><number>1297286708921</number></property><property 
id=\"4\"><string>vr</string></p";
-    invoke.reset ( plugin::ExternalInterface::parseInvoke(xml) );
+    invoke = plugin::ExternalInterface::parseInvoke(xml);
     if ((invoke->name == "reportFlashTiming") && (invoke->type == "xml")
         && invoke->args.empty())
     {
@@ -299,7 +299,7 @@ main(int , char **)
 
 
     xml = "<invoke name=\"reportFlashTiming\" 
returntype=\"xml\"><arguments><string>reportFlashTiming</string><object><property
 id=\"5\"><number>1297326407594</number></property><property 
id=\"4\"><string>vr</string></property><property 
id=\"3\"><number>1297326407147</number></property><property 
id=\"2\"><string>gv</string></property><property 
id=\"1\"><number>1297326406281</number></property><property 
id=\"0\"><string>fs</string></property></object><string>34</string><number>2</number><string>AASb6VeOkQtvnu_8</string><string>0</string><string>LNX%2010%2C1%2C999%2C0</string><string>Gnash%20GNU%2FLinux</string></arguments></invoke>";
-    invoke.reset ( plugin::ExternalInterface::parseInvoke(xml) );
+    invoke = plugin::ExternalInterface::parseInvoke(xml);
     check_equals (invoke->name, "reportFlashTiming");
     check_equals (invoke->type, "xml");
     xcheck_equals (invoke->args.size(), 8);

-----------------------------------------------------------------------

Summary of changes:
 plugin/npapi/test.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]