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 #include "chromeos/chromeos_switches.h"
9 namespace file_manager
{
11 template <GuestMode M
>
12 class VideoPlayerBrowserTestBase
: public FileManagerBrowserTestBase
{
14 GuestMode
GetGuestModeParam() const override
{ return M
; }
15 const char* GetTestCaseNameParam() const override
{
16 return test_case_name_
.c_str();
20 void SetUpCommandLine(base::CommandLine
* command_line
) override
{
21 command_line
->AppendSwitch(
22 chromeos::switches::kEnableVideoPlayerChromecastSupport
);
23 FileManagerBrowserTestBase::SetUpCommandLine(command_line
);
26 const char* GetTestManifestName() const override
{
27 return "video_player_test_manifest.json";
30 void set_test_case_name(const std::string
& name
) { test_case_name_
= name
; }
33 std::string test_case_name_
;
36 typedef VideoPlayerBrowserTestBase
<NOT_IN_GUEST_MODE
> VideoPlayerBrowserTest
;
37 typedef VideoPlayerBrowserTestBase
<IN_GUEST_MODE
>
38 VideoPlayerBrowserTestInGuestMode
;
40 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest
, OpenSingleVideoOnDownloads
) {
41 set_test_case_name("openSingleVideoOnDownloads");
45 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTestInGuestMode
,
46 OpenSingleVideoOnDownloads
) {
47 set_test_case_name("openSingleVideoOnDownloads");
51 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest
, OpenSingleVideoOnDrive
) {
52 set_test_case_name("openSingleVideoOnDrive");
56 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest
, CheckInitialElements
) {
57 set_test_case_name("checkInitialElements");
61 } // namespace file_manager