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

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

Issue 155237: Added a media playback test to test_shell_tests... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/tools/test_shell/test_shell.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/file_path.h"
6 #include "base/file_util.h"
7 #include "base/path_service.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "webkit/tools/test_shell/test_shell.h"
10 #include "webkit/tools/test_shell/test_shell_test.h"
11
12 class MediaLeakTest : public TestShellTest {
13 };
14
15 // <video> and <audio> tags only work stably on Windows.
16 #if defined(OS_WIN)
17
18 // This test is to be executed in test_shell_tests so we can capture memory
19 // leak analysis in automated runs.
20 TEST_F(MediaLeakTest, VideoBear) {
21 FilePath media_file;
22 ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &media_file));
23 media_file = media_file.Append(FILE_PATH_LITERAL("webkit"))
24 .Append(FILE_PATH_LITERAL("data"))
25 .Append(FILE_PATH_LITERAL("media"))
26 .Append(FILE_PATH_LITERAL("bear.html"));
27 test_shell_->LoadURL(media_file.ToWStringHack().c_str());
28 test_shell_->WaitTestFinished();
29 }
30
31 #endif
OLDNEW
« no previous file with comments | « no previous file | webkit/tools/test_shell/test_shell.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698