Skip to content

Commit

Permalink
Resolve mergeback conflicts from release/1.84.0 to main
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoreymendez committed Apr 18, 2024
1 parent ff7b0bc commit b102844
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ extension NetworkProtectionIPCTunnelController: TunnelController {

func handleFailure(_ error: Error) {
log(error)
pixelKit?.fire(StartAttempt.failure(error), frequency: .dailyAndContinuous)
pixelKit?.fire(StartAttempt.failure(error), frequency: .dailyAndCount)
}

do {
Expand All @@ -98,7 +98,7 @@ extension NetworkProtectionIPCTunnelController: TunnelController {
if let error {
handleFailure(error)
} else {
pixelKit?.fire(StartAttempt.success, frequency: .dailyAndContinuous)
pixelKit?.fire(StartAttempt.success, frequency: .dailyAndCount)
}
}
} catch {
Expand All @@ -112,7 +112,7 @@ extension NetworkProtectionIPCTunnelController: TunnelController {

func handleFailure(_ error: Error) {
log(error)
pixelKit?.fire(StopAttempt.failure(error), frequency: .dailyAndContinuous)
pixelKit?.fire(StopAttempt.failure(error), frequency: .dailyAndCount)
}

do {
Expand All @@ -122,7 +122,7 @@ extension NetworkProtectionIPCTunnelController: TunnelController {
if let error {
handleFailure(error)
} else {
pixelKit?.fire(StopAttempt.success, frequency: .dailyAndContinuous)
pixelKit?.fire(StopAttempt.success, frequency: .dailyAndCount)
}
}
} catch {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class NetworkProtectionIPCTunnelControllerTests: XCTestCase {
func testStartTunnelSuccess() async {
let pixelKit = PixelKitMock(expecting: [
.init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.begin, frequency: .standard),
.init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.success, frequency: .dailyAndContinuous)
.init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.success, frequency: .dailyAndCount)
])
let controller = NetworkProtectionIPCTunnelController(
featureVisibility: MockFeatureVisibility(),
Expand All @@ -50,7 +50,7 @@ final class NetworkProtectionIPCTunnelControllerTests: XCTestCase {

let pixelKit = PixelKitMock(expecting: [
.init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.begin, frequency: .standard),
.init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.failure(expectedError), frequency: .dailyAndContinuous)
.init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.failure(expectedError), frequency: .dailyAndCount)
])

let controller = NetworkProtectionIPCTunnelController(
Expand All @@ -68,7 +68,7 @@ final class NetworkProtectionIPCTunnelControllerTests: XCTestCase {
let error = NSError(domain: "test", code: 1)
let pixelKit = PixelKitMock(expecting: [
.init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.begin, frequency: .standard),
.init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.failure(error), frequency: .dailyAndContinuous)
.init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.failure(error), frequency: .dailyAndCount)
])
let controller = NetworkProtectionIPCTunnelController(
featureVisibility: MockFeatureVisibility(),
Expand All @@ -86,7 +86,7 @@ final class NetworkProtectionIPCTunnelControllerTests: XCTestCase {
func testStopTunnelSuccess() async {
let pixelKit = PixelKitMock(expecting: [
.init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.begin, frequency: .standard),
.init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.success, frequency: .dailyAndContinuous)
.init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.success, frequency: .dailyAndCount)
])
let controller = NetworkProtectionIPCTunnelController(
featureVisibility: MockFeatureVisibility(),
Expand All @@ -105,7 +105,7 @@ final class NetworkProtectionIPCTunnelControllerTests: XCTestCase {

let pixelKit = PixelKitMock(expecting: [
.init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.begin, frequency: .standard),
.init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.failure(expectedError), frequency: .dailyAndContinuous)
.init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.failure(expectedError), frequency: .dailyAndCount)
])

let controller = NetworkProtectionIPCTunnelController(
Expand All @@ -123,7 +123,7 @@ final class NetworkProtectionIPCTunnelControllerTests: XCTestCase {
let error = NSError(domain: "test", code: 1)
let pixelKit = PixelKitMock(expecting: [
.init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.begin, frequency: .standard),
.init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.failure(error), frequency: .dailyAndContinuous)
.init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.failure(error), frequency: .dailyAndCount)
])
let controller = NetworkProtectionIPCTunnelController(
featureVisibility: MockFeatureVisibility(),
Expand Down

0 comments on commit b102844

Please sign in to comment.