| // Copyright 2020 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "src/sys/run_test_component/sys_tests.h" |
| |
| #include "src/lib/fxl/strings/substitute.h" |
| #include "src/lib/pkg_url/fuchsia_pkg_url.h" |
| #include "src/sys/run_test_component/run_test_component.h" |
| |
| namespace run { |
| |
| bool should_run_in_sys(const std::string& url) { |
| std::string simplified_url = run::GetSimplifiedUrl(url); |
| return kUrlSet.count(simplified_url) == 1; |
| } |
| |
| } // namespace run |