chromium/ui/file_manager/integration_tests/file_manager/open_video_media_app.ts

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import {ENTRIES, RootPath} from '../test_util.js';

import {opensInMediaApp} from './open_media_app.js';

/**
 * Tests opening a video opens MediaApp/Backlight.
 * @param path Directory path (Downloads or Drive).
 */
async function opensVideoInMediaApp(path: string) {
  await opensInMediaApp(path, ENTRIES.world);
}

// Exports test functions.
export function videoOpenDrive() {
  return opensVideoInMediaApp(RootPath.DRIVE);
}

export function videoOpenDownloads() {
  return opensVideoInMediaApp(RootPath.DOWNLOADS);
}