Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / chromeos / file_manager / audio_player_browsertest.cc
blobf75facbb5d80155ccab7dad34c24ae623fee71c9
1 // Copyright 2015 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.
5 #include "chrome/browser/chromeos/file_manager/file_manager_browsertest_base.h"
7 namespace file_manager {
9 template <GuestMode M>
10 class AudioPlayerBrowserTestBase : public FileManagerBrowserTestBase {
11 public:
12 GuestMode GetGuestModeParam() const override { return M; }
13 const char* GetTestCaseNameParam() const override {
14 return test_case_name_.c_str();
17 protected:
18 const char* GetTestManifestName() const override {
19 return "audio_player_test_manifest.json";
22 void set_test_case_name(const std::string& name) { test_case_name_ = name; }
24 private:
25 std::string test_case_name_;
28 typedef AudioPlayerBrowserTestBase<NOT_IN_GUEST_MODE> AudioPlayerBrowserTest;
29 typedef AudioPlayerBrowserTestBase<IN_GUEST_MODE>
30 AudioPlayerBrowserTestInGuestMode;
32 // http://crbug.com/508949
33 #if defined(MEMORY_SANITIZER)
34 #define MAYBE_OpenAudioOnDownloads DISABLED_OpenAudioOnDownloads
35 #else
36 #define MAYBE_OpenAudioOnDownloads OpenAudioOnDownloads
37 #endif
38 IN_PROC_BROWSER_TEST_F(AudioPlayerBrowserTest, MAYBE_OpenAudioOnDownloads) {
39 set_test_case_name("openAudioOnDownloads");
40 StartTest();
43 IN_PROC_BROWSER_TEST_F(AudioPlayerBrowserTestInGuestMode,
44 OpenAudioOnDownloads) {
45 set_test_case_name("openAudioOnDownloads");
46 StartTest();
49 // http://crbug.com/508949
50 #if defined(MEMORY_SANITIZER)
51 #define MAYBE_OpenAudioOnDrive DISABLED_OpenAudioOnDrive
52 #else
53 #define MAYBE_OpenAudioOnDrive OpenAudioOnDrive
54 #endif
55 IN_PROC_BROWSER_TEST_F(AudioPlayerBrowserTest, MAYBE_OpenAudioOnDrive) {
56 set_test_case_name("openAudioOnDrive");
57 StartTest();
60 } // namespace file_manager