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

Side by Side Diff: webkit/tools/test_shell/media_leak_test.cc

Issue 165258: Enable MediaLeakTest.VideoBear (Closed)
Patch Set: all Created 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/file_path.h" 5 #include "base/file_path.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "webkit/tools/test_shell/test_shell.h" 9 #include "webkit/tools/test_shell/test_shell.h"
10 #include "webkit/tools/test_shell/test_shell_test.h" 10 #include "webkit/tools/test_shell/test_shell_test.h"
11 11
12 class MediaLeakTest : public TestShellTest { 12 class MediaLeakTest : public TestShellTest {
13 }; 13 };
14 14
15 #if defined(OS_WIN) || defined(OS_LINUX) 15 #if defined(OS_WIN) || defined(OS_LINUX)
16 16
17 // This test plays a Theora video file for 1 second. It tries to expose 17 // This test plays a Theora video file for 1 second. It tries to expose
18 // memory leaks during a normal playback. 18 // memory leaks during a normal playback.
19 TEST_F(MediaLeakTest, DISABLED_VideoBear) { 19 TEST_F(MediaLeakTest, VideoBear) {
20 FilePath media_file; 20 FilePath media_file;
21 ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &media_file)); 21 ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &media_file));
22 media_file = media_file.Append(FILE_PATH_LITERAL("webkit")) 22 media_file = media_file.Append(FILE_PATH_LITERAL("webkit"))
23 .Append(FILE_PATH_LITERAL("data")) 23 .Append(FILE_PATH_LITERAL("data"))
24 .Append(FILE_PATH_LITERAL("media")) 24 .Append(FILE_PATH_LITERAL("media"))
25 .Append(FILE_PATH_LITERAL("bear.html")); 25 .Append(FILE_PATH_LITERAL("bear.html"));
26 test_shell_->LoadURL(media_file.ToWStringHack().c_str()); 26 test_shell_->LoadURL(media_file.ToWStringHack().c_str());
27 test_shell_->WaitTestFinished(); 27 test_shell_->WaitTestFinished();
28 } 28 }
29 29
30 // This test loads a Theora video file and unloads it many times. It tries 30 // This test loads a Theora video file and unloads it many times. It tries
31 // to expose memory leaks in the glue layer with WebKit. 31 // to expose memory leaks in the glue layer with WebKit.
32 TEST_F(MediaLeakTest, DISABLED_ManyVideoBear) { 32 TEST_F(MediaLeakTest, DISABLED_ManyVideoBear) {
33 FilePath media_file; 33 FilePath media_file;
34 ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &media_file)); 34 ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &media_file));
35 media_file = media_file.Append(FILE_PATH_LITERAL("webkit")) 35 media_file = media_file.Append(FILE_PATH_LITERAL("webkit"))
36 .Append(FILE_PATH_LITERAL("data")) 36 .Append(FILE_PATH_LITERAL("data"))
37 .Append(FILE_PATH_LITERAL("media")) 37 .Append(FILE_PATH_LITERAL("media"))
38 .Append(FILE_PATH_LITERAL("manybear.html")); 38 .Append(FILE_PATH_LITERAL("manybear.html"));
39 test_shell_->LoadURL(media_file.ToWStringHack().c_str()); 39 test_shell_->LoadURL(media_file.ToWStringHack().c_str());
40 test_shell_->WaitTestFinished(); 40 test_shell_->WaitTestFinished();
41 } 41 }
42 42
43 #endif 43 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698