diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-14 17:58:16 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-14 17:58:16 +0000 |
commit | c499d08ff59eae8bfae79ed3ea2d21178790a5c7 (patch) | |
tree | 26f83da51be78fcba29349c3b0edda38eba8afef /chrome/browser/media_uitest.cc | |
parent | 1d95a8f0e313c9afbfd56fa0c007a16ad3881ba9 (diff) | |
download | chromium_src-c499d08ff59eae8bfae79ed3ea2d21178790a5c7.zip chromium_src-c499d08ff59eae8bfae79ed3ea2d21178790a5c7.tar.gz chromium_src-c499d08ff59eae8bfae79ed3ea2d21178790a5c7.tar.bz2 |
Fixed crash in AudioOutputController.
AudioOutputController must not call EventHandler after it has been
closed. Changing it so that lock_ is always locked whenever we call
handler_ to ensure that state_ != kClosed.
BUG=54939
TEST=unittests
Review URL: http://codereview.chromium.org/3308025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59398 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/media_uitest.cc')
-rw-r--r-- | chrome/browser/media_uitest.cc | 42 |
1 files changed, 30 insertions, 12 deletions
diff --git a/chrome/browser/media_uitest.cc b/chrome/browser/media_uitest.cc index 1713e5f..8f62a2a 100644 --- a/chrome/browser/media_uitest.cc +++ b/chrome/browser/media_uitest.cc @@ -48,38 +48,56 @@ class MediaTest : public UITest { } }; -// Crashes, see http://crbug.com/54939 -TEST_F(MediaTest, DISABLED_VideoBearTheora) { +#if defined(OS_WIN) + +// Tests may fail on windows: http://crbug.com/55477 +#define MAYBE_VideoBearTheora FLAKY_VideoBearTheora +#define MAYBE_VideoBearSilentTheora FLAKY_VideoBearSilentTheora +#define MAYBE_VideoBearWebm FLAKY_VideoBearWebm +#define MAYBE_VideoBearSilentWebm FLAKY_VideoBearSilentWebm +#define MAYBE_VideoBearMp4 FLAKY_VideoBearMp4 +#define MAYBE_VideoBearSilentMp4 FLAKY_VideoBearSilentMp4 +#define MAYBE_MediaUILayoutTest FLAKY_MediaUILayoutTest + +#else + +#define MAYBE_VideoBearTheora VideoBearTheora +#define MAYBE_VideoBearSilentTheora VideoBearSilentTheora +#define MAYBE_VideoBearWebm VideoBearWebm +#define MAYBE_VideoBearSilentWebm VideoBearSilentWebm +#define MAYBE_VideoBearMp4 VideoBearMp4 +#define MAYBE_VideoBearSilentMp4 VideoBearSilentMp4 +#define MAYBE_MediaUILayoutTest MediaUILayoutTest + +#endif + +TEST_F(MediaTest, MAYBE_VideoBearTheora) { PlayVideo("bear.ogv"); } -// Crashes, see http://crbug.com/54939 -TEST_F(MediaTest, DISABLED_VideoBearSilentTheora) { +TEST_F(MediaTest, MAYBE_VideoBearSilentTheora) { PlayVideo("bear_silent.ogv"); } -// Crashes, see http://crbug.com/54939 -TEST_F(MediaTest, DISABLED_VideoBearWebm) { +TEST_F(MediaTest, MAYBE_VideoBearWebm) { PlayVideo("bear.webm"); } -// Crashes, see http://crbug.com/54939 -TEST_F(MediaTest, DISABLED_VideoBearSilentWebm) { +TEST_F(MediaTest, MAYBE_VideoBearSilentWebm) { PlayVideo("bear_silent.webm"); } #if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS) -TEST_F(MediaTest, VideoBearMp4) { +TEST_F(MediaTest, MAYBE_VideoBearMp4) { PlayVideo("bear.mp4"); } -TEST_F(MediaTest, VideoBearSilentMp4) { +TEST_F(MediaTest, MAYBE_VideoBearSilentMp4) { PlayVideo("bear_silent.mp4"); } #endif -// Crashes, see http://crbug.com/54939 -TEST_F(UILayoutTest, DISABLED_MediaUILayoutTest) { +TEST_F(UILayoutTest, MAYBE_MediaUILayoutTest) { static const char* kResources[] = { "content", "media-file.js", |