Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / chromeos / file_manager / video_player_browsertest.cc
blob983569261dc33bb4297b6f0cc8916d8e0098a59d
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 {
13 public:
14 GuestMode GetGuestModeParam() const override { return M; }
15 const char* GetTestCaseNameParam() const override {
16 return test_case_name_.c_str();
19 protected:
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; }
32 private:
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");
42 StartTest();
45 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTestInGuestMode,
46 OpenSingleVideoOnDownloads) {
47 set_test_case_name("openSingleVideoOnDownloads");
48 StartTest();
51 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest, OpenSingleVideoOnDrive) {
52 set_test_case_name("openSingleVideoOnDrive");
53 StartTest();
56 IN_PROC_BROWSER_TEST_F(VideoPlayerBrowserTest, CheckInitialElements) {
57 set_test_case_name("checkInitialElements");
58 StartTest();
61 } // namespace file_manager