diff options
author | hclam@google.com <hclam@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-22 21:08:47 +0000 |
---|---|---|
committer | hclam@google.com <hclam@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-22 21:08:47 +0000 |
commit | 02830ae4bde4c83da26412e4d1d99ec57f78f8f5 (patch) | |
tree | 3231c1d29f3a00aae4e567145574573cfa527fa6 | |
parent | 0ac64c98bc6f6015a833ce9297bd57138ce9eb2d (diff) | |
download | chromium_src-02830ae4bde4c83da26412e4d1d99ec57f78f8f5.zip chromium_src-02830ae4bde4c83da26412e4d1d99ec57f78f8f5.tar.gz chromium_src-02830ae4bde4c83da26412e4d1d99ec57f78f8f5.tar.bz2 |
Fix broken build because of r21317
TBR=scherkus, nsylvain
Review URL: http://codereview.chromium.org/159226
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21319 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/tools/test_shell/media_leak_test.cc | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/webkit/tools/test_shell/media_leak_test.cc b/webkit/tools/test_shell/media_leak_test.cc index 381c097..a7ab807 100644 --- a/webkit/tools/test_shell/media_leak_test.cc +++ b/webkit/tools/test_shell/media_leak_test.cc @@ -10,17 +10,6 @@ #include "webkit/tools/test_shell/test_shell_test.h" class MediaLeakTest : public TestShellTest { - public: - void RunTest(const char* file) { - FilePath media_file; - ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &media_file)); - media_file = media_file.Append(FILE_PATH_LITERAL("webkit")) - .Append(FILE_PATH_LITERAL("data")) - .Append(FILE_PATH_LITERAL("media")) - .Append(FILE_PATH_LITERAL(file)); - test_shell_->LoadURL(media_file.ToWStringHack().c_str()); - test_shell_->WaitTestFinished(); - } }; #if defined(OS_WIN) || defined(OS_LINUX) @@ -28,13 +17,27 @@ class MediaLeakTest : public TestShellTest { // This test plays a Theora video file for 1 second. It tries to expose // memory leaks during a normal playback. TEST_F(MediaLeakTest, VideoBear) { - RunTest("bear.html"); + FilePath media_file; + ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &media_file)); + media_file = media_file.Append(FILE_PATH_LITERAL("webkit")) + .Append(FILE_PATH_LITERAL("data")) + .Append(FILE_PATH_LITERAL("media")) + .Append(FILE_PATH_LITERAL("bear.html")); + test_shell_->LoadURL(media_file.ToWStringHack().c_str()); + test_shell_->WaitTestFinished(); } // This test loads a Theora video file and unloads it many times. It tries // to expose memory leaks in the glue layer with WebKit. TEST_F(MediaLeakTest, ManyVideoBear) { - RunTest("manybear.html"); + FilePath media_file; + ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &media_file)); + media_file = media_file.Append(FILE_PATH_LITERAL("webkit")) + .Append(FILE_PATH_LITERAL("data")) + .Append(FILE_PATH_LITERAL("media")) + .Append(FILE_PATH_LITERAL("manybear.html")); + test_shell_->LoadURL(media_file.ToWStringHack().c_str()); + test_shell_->WaitTestFinished(); } #endif |