dart-sdk/runtime/observatory_2
Ben Konyi a62bfec074 [ Service ] Allow for case insensitive URI mappings on Windows and MacOS
The Windows and MacOS file system can be case insensitive, so the following
two URIs can be equivalent:

 - file:///c:/foo/bar
 - file:///C:/Foo/Bar

Since it's possible for tooling to request a mapping for a URI that
isn't an exact case-sensitive match to that found in the URI mappings
cache, requesting a mapping for the inexact match will fail even though
the paths are potentially equivalent.

This change allows for lookupPackageUris and lookupResolvedPackageUris
to correctly handle paths that are not case-sensitive matches to entries
in the URI mappings cache on Windows and MacOS.

TEST=uri_mappings_lookup_test.dart

Change-Id: I35134c47bf3bd04bc452373b31b4eb5893ba1435
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/288821
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Helin Shiah <helinx@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2023-03-20 17:21:27 +00:00
..
bin [observatory] remove unused_imports and some unused variables 2023-02-15 16:49:58 +00:00
lib [vm] Remove malloc profiler. 2023-03-06 21:00:30 +00:00
tests [ Service ] Allow for case insensitive URI mappings on Windows and MacOS 2023-03-20 17:21:27 +00:00
tool Change references to "dartfmt" in runtime and tools to "dart format". 2021-10-01 18:16:27 +00:00
web Spelling runtime observatory 2023-01-20 14:29:08 +00:00
.gitignore Copy Dart 2 version of Observatory and service tests. 2020-10-07 22:20:25 +00:00
analysis_options.yaml [SDK] Removes non-exiting tests from .status 2021-02-04 06:46:13 +00:00
BUILD.gn [infra] Upgrade checked-in SDKs to 2.18.0-271.0.dev 2022-07-15 04:48:41 +00:00
HACKING.md Copy Dart 2 version of Observatory and service tests. 2020-10-07 22:20:25 +00:00
observatory_sources.gni [ Observatory ] Remove footer with dead / irrelevant links 2021-10-11 23:30:24 +00:00
pubspec.yaml [observatory] remove unused_imports and some unused variables 2023-02-15 16:49:58 +00:00
update_sources.py [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00