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 // http://crbug.com/508949
46 #if defined(MEMORY_SANITIZER)
47 #define MAYBE_OpenSingleVideoOnDownloads DISABLED_OpenSingleVideoOnDownloads
49 #define MAYBE_OpenSingleVideoOnDownloads OpenSingleVideoOnDownloads
51 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTestInGuestMode
,
52 MAYBE_OpenSingleVideoOnDownloads
) {
53 set_test_case_name("openSingleVideoOnDownloads");
57 // http://crbug.com/508949
58 #if defined(MEMORY_SANITIZER)
59 #define MAYBE_OpenSingleVideoOnDrive DISABLED_OpenSingleVideoOnDrive
61 #define MAYBE_OpenSingleVideoOnDrive OpenSingleVideoOnDrive
63 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest
, MAYBE_OpenSingleVideoOnDrive
) {
64 set_test_case_name("openSingleVideoOnDrive");
68 // http://crbug.com/508949
69 #if defined(MEMORY_SANITIZER)
70 #define MAYBE_CheckInitialElements DISABLED_CheckInitialElements
72 #define MAYBE_CheckInitialElements CheckInitialElements
74 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest
, MAYBE_CheckInitialElements
) {
75 set_test_case_name("checkInitialElements");
79 } // namespace file_manager