MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / getChromiumSrcPath

Function getChromiumSrcPath

scripts/npm_test.js:63–80  ·  view source on GitHub ↗
(isThirdParty)

Source from the content-addressed store, hash-verified

61main();
62
63function getChromiumSrcPath(isThirdParty) {
64 if (isThirdParty) {
65 // Assume we're in `chromium/src/third_party/devtools-frontend/src`.
66 return path.resolve(CURRENT_PATH, '..', '..', '..');
67 }
68 // Assume we're in `devtools/devtools-frontend`, where `devtools` is
69 // on the same level as `chromium`.
70 const srcPath = path.resolve(CURRENT_PATH, '..', '..', 'chromium', 'src');
71 if (!isDir(srcPath)) {
72 throw new Error(
73 `Chromium source directory not found at \`${srcPath}\`. ` +
74 'Either move your standalone `devtools/devtools-frontend` checkout ' +
75 'so that `devtools` is at the same level as `chromium` in ' +
76 '`chromium/src`, or use `--chromium-path`.',
77 );
78 }
79 return srcPath;
80}
81
82function getContentShellBinaryPath(dirPath) {
83 if (process.platform === 'linux') {

Callers 1

npm_test.jsFile · 0.85

Calls 2

isDirFunction · 0.90
resolveMethod · 0.65

Tested by

no test coverage detected