diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-17 02:10:45 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-17 02:10:45 +0000 |
commit | bf712f8ee12c3045ed390005887acb28e2bc7d49 (patch) | |
tree | 03769bfbfd2c85160932135dc4f06f6da9e45875 /webkit/plugins/ppapi/url_request_info_unittest.cc | |
parent | dce730aba66fca3b63458a483bb60eeb716f2a79 (diff) | |
download | chromium_src-bf712f8ee12c3045ed390005887acb28e2bc7d49.zip chromium_src-bf712f8ee12c3045ed390005887acb28e2bc7d49.tar.gz chromium_src-bf712f8ee12c3045ed390005887acb28e2bc7d49.tar.bz2 |
Convert the URL loading objects to the API/thunk system.
TEST=PPAPI UI tests
BUG=none
Review URL: http://codereview.chromium.org/7192012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89439 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/url_request_info_unittest.cc')
-rw-r--r-- | webkit/plugins/ppapi/url_request_info_unittest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/plugins/ppapi/url_request_info_unittest.cc b/webkit/plugins/ppapi/url_request_info_unittest.cc index e3af414..5234ff2 100644 --- a/webkit/plugins/ppapi/url_request_info_unittest.cc +++ b/webkit/plugins/ppapi/url_request_info_unittest.cc @@ -2,11 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "ppapi/thunk/thunk.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" - #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" #include "webkit/plugins/ppapi/ppapi_unittest.h" @@ -95,7 +95,8 @@ WebView* URLRequestInfoTest::web_view_; WebFrame* URLRequestInfoTest::frame_; TEST_F(URLRequestInfoTest, GetInterface) { - const PPB_URLRequestInfo* interface = info_->GetInterface(); + const PPB_URLRequestInfo* interface = + ::ppapi::thunk::GetPPB_URLRequestInfo_Thunk(); ASSERT_TRUE(interface); ASSERT_TRUE(interface->Create); ASSERT_TRUE(interface->IsURLRequestInfo); @@ -107,7 +108,7 @@ TEST_F(URLRequestInfoTest, GetInterface) { } TEST_F(URLRequestInfoTest, AsURLRequestInfo) { - ASSERT_EQ(info_, info_->AsPPB_URLRequestInfo_Impl()); + ASSERT_EQ(info_, info_->AsPPB_URLRequestInfo_API()); } TEST_F(URLRequestInfoTest, StreamToFile) { |