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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/tools/test_shell/test_shell.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/media_leak_test.cc
===================================================================
--- webkit/tools/test_shell/media_leak_test.cc (revision 0)
+++ webkit/tools/test_shell/media_leak_test.cc (revision 0)
@@ -0,0 +1,31 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/file_path.h"
+#include "base/file_util.h"
+#include "base/path_service.h"
+#include "testing/gtest/include/gtest/gtest.h"
+#include "webkit/tools/test_shell/test_shell.h"
+#include "webkit/tools/test_shell/test_shell_test.h"
+
+class MediaLeakTest : public TestShellTest {
+};
+
+// <video> and <audio> tags only work stably on Windows.
+#if defined(OS_WIN)
+
+// This test is to be executed in test_shell_tests so we can capture memory
+// leak analysis in automated runs.
+TEST_F(MediaLeakTest, VideoBear) {
+ 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();
+}
+
+#endif
Property changes on: webkit\tools\test_shell\media_leak_test.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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