In preparation of upgrading our fleet to macOS 14, allow tests to run on either macOS 13 or 14. Fixes https://github.com/flutter/flutter/issues/148879. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style