| OLD | NEW |
| (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 |
| OLD | NEW |