Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Add engine test tool
Browse files Browse the repository at this point in the history
  • Loading branch information
cuba committed Nov 2, 2023
1 parent 7a6dae7 commit bdc9b02
Show file tree
Hide file tree
Showing 8 changed files with 306,736 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ var package = Package(
.copy("Resources/ad-block-resources/resources.json"),
.copy("Resources/filter-rules/cdbbhgbmjhfnhnmgeddbliobbofkgdhe.txt"),
.copy("Resources/filter-rules/cffkpbalmllkdoenhmdmpbkajipdjfam.dat"),
.copy("Resources/filter-rules/list.txt"),
.copy("Resources/html/index.html"),
.copy("Resources/scripts/farbling-tests.js"),
.copy("Resources/scripts/request-blocking-tests.js"),
Expand Down Expand Up @@ -445,6 +446,8 @@ var braveTarget: PackageDescription.Target = .target(
.copy("WebFilters/ContentBlocker/Lists/block-cookies.json"),
.copy("WebFilters/ContentBlocker/Lists/block-trackers.json"),
.copy("WebFilters/ShieldStats/Adblock/Resources/ABPFilterParserData.dat"),
.copy("WebFilters/Debug/Resources/FilterLists/list.txt"),
.copy("WebFilters/Debug/Resources/resources.json"),
],
plugins: ["LoggerPlugin"]
)
Expand Down
6 changes: 6 additions & 0 deletions Sources/Brave/Frontend/Settings/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,12 @@ class SettingsViewController: TableViewController {
let vc = UIHostingController(rootView: SandboxInspectorView())
self.navigationController?.pushViewController(vc, animated: true)
}, accessory: .disclosureIndicator),
Row(
text: "Test Engines",
selection: { [unowned self] in
let controller = UIHostingController(rootView: TestAdblockEnginesView())
self.navigationController?.pushViewController(controller, animated: true)
}, accessory: .disclosureIndicator, cellClass: MultilineSubtitleCell.self),
Row(
text: "Adblock Debug",
selection: { [unowned self] in
Expand Down
153,175 changes: 153,175 additions & 0 deletions Sources/Brave/WebFilters/Debug/Resources/FilterLists/list.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Sources/Brave/WebFilters/Debug/Resources/resources.json

Large diffs are not rendered by default.

Loading

0 comments on commit bdc9b02

Please sign in to comment.