// Copyright 2015 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 "chrome/browser/chromeos/file_manager/file_manager_browsertest_base.h" namespace file_manager { template class AudioPlayerBrowserTestBase : public FileManagerBrowserTestBase { public: GuestMode GetGuestModeParam() const override { return M; } const char* GetTestCaseNameParam() const override { return test_case_name_.c_str(); } protected: const char* GetTestManifestName() const override { return "audio_player_test_manifest.json"; } void set_test_case_name(const std::string& name) { test_case_name_ = name; } private: std::string test_case_name_; }; typedef AudioPlayerBrowserTestBase AudioPlayerBrowserTest; typedef AudioPlayerBrowserTestBase AudioPlayerBrowserTestInGuestMode; // http://crbug.com/508949 #if defined(MEMORY_SANITIZER) #define MAYBE_OpenAudioOnDownloads DISABLED_OpenAudioOnDownloads #else #define MAYBE_OpenAudioOnDownloads OpenAudioOnDownloads #endif IN_PROC_BROWSER_TEST_F(AudioPlayerBrowserTest, MAYBE_OpenAudioOnDownloads) { set_test_case_name("openAudioOnDownloads"); StartTest(); } IN_PROC_BROWSER_TEST_F(AudioPlayerBrowserTestInGuestMode, OpenAudioOnDownloads) { set_test_case_name("openAudioOnDownloads"); StartTest(); } // http://crbug.com/508949 #if defined(MEMORY_SANITIZER) #define MAYBE_OpenAudioOnDrive DISABLED_OpenAudioOnDrive #else #define MAYBE_OpenAudioOnDrive OpenAudioOnDrive #endif IN_PROC_BROWSER_TEST_F(AudioPlayerBrowserTest, MAYBE_OpenAudioOnDrive) { set_test_case_name("openAudioOnDrive"); StartTest(); } #if defined(MEMORY_SANITIZER) #define MAYBE_TogglePlayState DISABLED_TogglePlayState #else #define MAYBE_TogglePlayState TogglePlayState #endif IN_PROC_BROWSER_TEST_F(AudioPlayerBrowserTest, MAYBE_TogglePlayState) { set_test_case_name("togglePlayState"); StartTest(); } #if defined(MEMORY_SANITIZER) #define MAYBE_ChangeVolumeLevel DISABLED_ChangeVolumeLevel #else #define MAYBE_ChangeVolumeLevel ChangeVolumeLevel #endif IN_PROC_BROWSER_TEST_F(AudioPlayerBrowserTest, MAYBE_ChangeVolumeLevel) { set_test_case_name("changeVolumeLevel"); StartTest(); } #if defined(MEMORY_SANITIZER) #define MAYBE_ChangeTracks DISABLED_ChangeTracks #else #define MAYBE_ChangeTracks ChangeTracks #endif IN_PROC_BROWSER_TEST_F(AudioPlayerBrowserTest, MAYBE_ChangeTracks) { set_test_case_name("changeTracks"); StartTest(); } } // namespace file_manager