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

Unified Diff: webkit/plugins/ppapi/url_request_info_unittest.cc

Issue 7461147: Add the PP_Instance to resource object base. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Test fixed. 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
« no previous file with comments | « webkit/plugins/ppapi/resource.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/url_request_info_unittest.cc
diff --git a/webkit/plugins/ppapi/url_request_info_unittest.cc b/webkit/plugins/ppapi/url_request_info_unittest.cc
index e4f04a9dad105d5b0658c7603c6cb8fb474b22a3..c57fec76b2115b55bbf7e34c56f13442306dfa1b 100644
--- a/webkit/plugins/ppapi/url_request_info_unittest.cc
+++ b/webkit/plugins/ppapi/url_request_info_unittest.cc
@@ -45,7 +45,14 @@ namespace ppapi {
class URLRequestInfoTest : public PpapiUnittest {
public:
- URLRequestInfoTest() : info_(new PPB_URLRequestInfo_Impl(instance())) {
+ URLRequestInfoTest() {
+ }
+
+ virtual void SetUp() OVERRIDE {
+ PpapiUnittest::SetUp();
+
+ // Must do this after the normal SetUp so the instance is valid.
+ info_ = new PPB_URLRequestInfo_Impl(instance());
}
static void SetUpTestCase() {
« no previous file with comments | « webkit/plugins/ppapi/resource.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698