Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ Dropping a requirement of a major version of a dependency is a new contract.
### Fixed
- Use non-deprecated Kotlin stdlib. Fix [JPERF-466].

### Added
- Added parametrized `CustomChromium`.

[JPERF-466]: https://ecosystem.atlassian.net/browse/JPERF-466

## [4.14.4] - 2019-12-09
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.atlassian.performance.tools.infrastructure.api.browser.chromium

import com.atlassian.performance.tools.infrastructure.ChromedriverInstaller
import com.atlassian.performance.tools.infrastructure.ChromiumInstaller
import com.atlassian.performance.tools.infrastructure.api.browser.Browser
import com.atlassian.performance.tools.infrastructure.ParallelExecutor
import com.atlassian.performance.tools.ssh.api.SshConnection
import java.net.URI

class CustomChromium(
private val chromiumUri: URI,
private val chromedriverUri: URI
) : Browser {

/**
* Installs chromium with specified URI
*/
override fun install(ssh: SshConnection) {
ParallelExecutor().execute(
{ ChromiumInstaller(chromiumUri).install(ssh) },
{ ChromedriverInstaller(chromedriverUri).install(ssh) }
)
}
}