Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SlayterDev committed Sep 12, 2024
1 parent a5c9cae commit aaf9866
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DuckDuckGoTests/BrokenSiteReportingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ final class BrokenSiteReportingTests: XCTestCase {
manufacturer: test.manufacturer ?? "",
upgradedHttps: test.wasUpgraded,
tdsETag: test.blocklistVersion,
configVersion: test.remoteConfigVersion,
blockedTrackerDomains: test.blockedTrackers,
installedSurrogates: test.surrogates,
isGPCEnabled: test.gpcEnabled ?? false,
Expand Down Expand Up @@ -169,6 +170,7 @@ private struct Test: Codable {
let providedDescription: String?
let blockedTrackers, surrogates: [String]
let atb, blocklistVersion: String
let remoteConfigVersion: String?
let expectReportURLPrefix: String
let expectReportURLParams: [ExpectReportURLParam]
let exceptPlatforms: [String]
Expand Down
1 change: 1 addition & 0 deletions DuckDuckGoTests/MockPrivacyConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class MockPrivacyConfiguration: PrivacyConfiguration {
}

var identifier: String = "MockPrivacyConfiguration"
var version: String? = "123456789"
var userUnprotectedDomains: [String] = []
var tempUnprotectedDomains: [String] = []
var trackerAllowlist: PrivacyConfigurationData.TrackerAllowlist = .init(entries: [:],
Expand Down
1 change: 1 addition & 0 deletions DuckDuckGoTests/PrivacyConfigurationManagerMock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import BrowserServicesKit
class PrivacyConfigurationMock: PrivacyConfiguration {

var identifier: String = "id"
var version: String? = "123456789"

var userUnprotectedDomains: [String] = []

Expand Down

0 comments on commit aaf9866

Please sign in to comment.