721670fc2d
_fe_analyzer_shared is published on pub so it isn't appropriate for it to use package:expect (which isn't published at all). All we were using it for was a few string equality checks; simply using operator== and throwing an exception is an adequate replacement. If, in the future, we decide that we really need the additional functionality provided by package:expect, we can always convert the test to use package:test, and then make use of the `expect` method provided by package:test. Partially addresses https://github.com/dart-lang/sdk/issues/40007. Change-Id: Ib7827db0cdb480feacc454a3aa660ea4c6e7cfd7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/130623 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Paul Berry <paulberry@google.com>