(&self)
| 317 | } |
| 318 | |
| 319 | fn get_browser_path_map(&self) -> HashMap<BrowserPath, &str> { |
| 320 | HashMap::from([ |
| 321 | ( |
| 322 | BrowserPath::new(WINDOWS, STABLE), |
| 323 | r"Google\Chrome\Application\chrome.exe", |
| 324 | ), |
| 325 | ( |
| 326 | BrowserPath::new(WINDOWS, BETA), |
| 327 | r"Google\Chrome Beta\Application\chrome.exe", |
| 328 | ), |
| 329 | ( |
| 330 | BrowserPath::new(WINDOWS, DEV), |
| 331 | r"Google\Chrome Dev\Application\chrome.exe", |
| 332 | ), |
| 333 | ( |
| 334 | BrowserPath::new(WINDOWS, NIGHTLY), |
| 335 | r"Google\Chrome SxS\Application\chrome.exe", |
| 336 | ), |
| 337 | ( |
| 338 | BrowserPath::new(MACOS, STABLE), |
| 339 | "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", |
| 340 | ), |
| 341 | ( |
| 342 | BrowserPath::new(MACOS, BETA), |
| 343 | "/Applications/Google Chrome Beta.app/Contents/MacOS/Google Chrome Beta", |
| 344 | ), |
| 345 | ( |
| 346 | BrowserPath::new(MACOS, DEV), |
| 347 | "/Applications/Google Chrome Dev.app/Contents/MacOS/Google Chrome Dev", |
| 348 | ), |
| 349 | ( |
| 350 | BrowserPath::new(MACOS, NIGHTLY), |
| 351 | "/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary", |
| 352 | ), |
| 353 | (BrowserPath::new(LINUX, STABLE), "/usr/bin/google-chrome"), |
| 354 | (BrowserPath::new(LINUX, BETA), "/usr/bin/google-chrome-beta"), |
| 355 | ( |
| 356 | BrowserPath::new(LINUX, DEV), |
| 357 | "/usr/bin/google-chrome-unstable", |
| 358 | ), |
| 359 | ]) |
| 360 | } |
| 361 | |
| 362 | fn discover_browser_version(&mut self) -> Result<Option<String>, Error> { |
| 363 | self.general_discover_browser_version( |
nothing calls this directly
no outgoing calls
no test coverage detected