Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / chromeos / file_manager / audio_player_browsertest.cc
blob4202242baacad7884e3740b22c299808cab80473
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 IN_PROC_BROWSER_TEST_F(AudioPlayerBrowserTest, OpenAudioOnDownloads) {
33 set_test_case_name("openAudioOnDownloads");
34 StartTest();
37 IN_PROC_BROWSER_TEST_F(AudioPlayerBrowserTestInGuestMode,
38 OpenAudioOnDownloads) {
39 set_test_case_name("openAudioOnDownloads");
40 StartTest();
43 IN_PROC_BROWSER_TEST_F(AudioPlayerBrowserTest, OpenAudioOnDrive) {
44 set_test_case_name("openAudioOnDrive");
45 StartTest();
48 } // namespace file_manager