summaryrefslogtreecommitdiffstats
path: root/ppapi/tests/test_video_decoder.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-04 14:46:54 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-04 14:46:54 +0000
commit26d1830e0ed033245d10855a97dee75a9902f1f1 (patch)
tree6802e3cc90b926c6428c548f34d494436ffca694 /ppapi/tests/test_video_decoder.cc
parent39d1e9b7fe30a33cf549085823f1f2c90b16a257 (diff)
downloadchromium_src-26d1830e0ed033245d10855a97dee75a9902f1f1.zip
chromium_src-26d1830e0ed033245d10855a97dee75a9902f1f1.tar.gz
chromium_src-26d1830e0ed033245d10855a97dee75a9902f1f1.tar.bz2
Properly set the testing_interface_ member. Previously this was not being
initialized in the Graphics2D test. I did some refactoring to make one for all tests and have a consistent way to initialize it for the tests that need it, which saved some duplicated code. TEST=this is BUG=81324 Review URL: http://codereview.chromium.org/6914022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84059 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests/test_video_decoder.cc')
-rw-r--r--ppapi/tests/test_video_decoder.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/ppapi/tests/test_video_decoder.cc b/ppapi/tests/test_video_decoder.cc
index f669d47..4279894 100644
--- a/ppapi/tests/test_video_decoder.cc
+++ b/ppapi/tests/test_video_decoder.cc
@@ -16,16 +16,7 @@ bool TestVideoDecoder::Init() {
pp::Module::Get()->GetBrowserInterface(PPB_VIDEODECODER_DEV_INTERFACE));
var_interface_ = reinterpret_cast<PPB_Var const*>(
pp::Module::Get()->GetBrowserInterface(PPB_VAR_INTERFACE));
- testing_interface_ = reinterpret_cast<PPB_Testing_Dev const*>(
- pp::Module::Get()->GetBrowserInterface(PPB_TESTING_DEV_INTERFACE));
- if (!testing_interface_) {
- // Give a more helpful error message for the testing interface being gone
- // since that needs special enabling in Chrome.
- instance_->AppendError("This test needs the testing interface, which is "
- "not currently available. In Chrome, use --enable-pepper-testing when "
- "launching.");
- }
- return video_decoder_interface_ && var_interface_ && testing_interface_;
+ return video_decoder_interface_ && var_interface_ && InitTestingInterface();
}
void TestVideoDecoder::RunTest() {