Files
react-native-devtools-frontend/front_end/core/platform/DevToolsPath.ts
T
Benedikt Meurer a29c7ed48a [test] Rename and consolidate unit test files.
Make sure that unit test files use the same base name as the file that
they are testing. Also consolidate tests appropriately when they are
in the wrong file.

Fixed: b:325892225
Bug: b:323795674
Change-Id: I1197a44eb45544c8f6fccf330b7afe6b8e20bd21
Doc: http://go/chrome-devtools:move-unit-tests-design
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5307615
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
2024-02-19 13:23:52 +00:00

31 lines
923 B
TypeScript

// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {type Brand} from './Brand.js';
/**
* File paths in DevTools that are represented as URLs
* @example
* “file:///Hello%20World/file/js”
*/
export type UrlString = Brand<string, 'UrlString'>;
export const EmptyUrlString = '' as UrlString;
/**
* File paths in DevTools that are represented as unencoded absolute
* or relative paths
* @example
* “/Hello World/file.js”
*/
export type RawPathString = Brand<string, 'RawPathString'>;
export const EmptyRawPathString = '' as RawPathString;
/**
* File paths in DevTools that are represented as encoded paths
* @example
* “/Hello%20World/file.js”
*/
export type EncodedPathString = Brand<string, 'EncodedPathString'>;
export const EmptyEncodedPathString = '' as EncodedPathString;