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

Unified Diff: ppapi/tests/test_flash.cc

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH TITLE Created 8 years, 10 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
« no previous file with comments | « ppapi/tests/test_char_set.cc ('k') | ppapi/tests/test_flash_clipboard.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_flash.cc
diff --git a/ppapi/tests/test_flash.cc b/ppapi/tests/test_flash.cc
index 9f666a8f36144ff2d03b59c1e0db3df1ca660422..debbc49f38f0531bfc5bbf7e3bb165fd771104e4 100644
--- a/ppapi/tests/test_flash.cc
+++ b/ppapi/tests/test_flash.cc
@@ -41,27 +41,27 @@ std::string TestFlash::TestSetInstanceAlwaysOnTop() {
}
std::string TestFlash::TestGetProxyForURL() {
- Var result(Var::PassRef(),
+ Var result(pp::PASS_REF,
flash_interface_->GetProxyForURL(instance_->pp_instance(),
"http://127.0.0.1/foobar/"));
ASSERT_TRUE(result.is_string());
// Assume no one configures a proxy for localhost.
ASSERT_EQ("DIRECT", result.AsString());
- result = Var(Var::PassRef(),
+ result = Var(pp::PASS_REF,
flash_interface_->GetProxyForURL(instance_->pp_instance(),
"http://www.google.com"));
// Don't know what the proxy might be, but it should be a valid result.
ASSERT_TRUE(result.is_string());
- result = Var(Var::PassRef(),
+ result = Var(pp::PASS_REF,
flash_interface_->GetProxyForURL(instance_->pp_instance(),
"file:///tmp"));
ASSERT_TRUE(result.is_string());
// Should get "DIRECT" for file:// URLs.
ASSERT_EQ("DIRECT", result.AsString());
- result = Var(Var::PassRef(),
+ result = Var(pp::PASS_REF,
flash_interface_->GetProxyForURL(instance_->pp_instance(),
"this_isnt_an_url"));
// Should be an error.
@@ -91,7 +91,7 @@ std::string TestFlash::TestGetLocalTimeZoneOffset() {
}
std::string TestFlash::TestGetCommandLineArgs() {
- Var result(Var::PassRef(),
+ Var result(pp::PASS_REF,
flash_interface_->GetCommandLineArgs(
pp::Module::Get()->pp_module()));
ASSERT_TRUE(result.is_string());
« no previous file with comments | « ppapi/tests/test_char_set.cc ('k') | ppapi/tests/test_flash_clipboard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698