blob: 2c1ed909046120e8913a964b5dcd6ed458c535b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
// 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 <GuestMode M>
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<NOT_IN_GUEST_MODE> AudioPlayerBrowserTest;
typedef AudioPlayerBrowserTestBase<IN_GUEST_MODE>
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
|