diff --git a/engine/src/flutter/display_list/BUILD.gn b/engine/src/flutter/display_list/BUILD.gn index 9e34768f81..eb547dd7d7 100644 --- a/engine/src/flutter/display_list/BUILD.gn +++ b/engine/src/flutter/display_list/BUILD.gn @@ -128,6 +128,7 @@ if (enable_unittests) { ":display_list_fixtures", "//flutter/display_list/testing:display_list_testing", "//flutter/testing", + "//flutter/testing:skia", ] if (!defined(defines)) { diff --git a/engine/src/flutter/display_list/display_list_unittests.cc b/engine/src/flutter/display_list/display_list_unittests.cc index 8845ce3ac6..242b34359a 100644 --- a/engine/src/flutter/display_list/display_list_unittests.cc +++ b/engine/src/flutter/display_list/display_list_unittests.cc @@ -18,6 +18,7 @@ #include "flutter/display_list/utils/dl_receiver_utils.h" #include "flutter/fml/logging.h" #include "flutter/fml/math.h" +#include "flutter/testing/assertions_skia.h" #include "flutter/testing/display_list_testing.h" #include "flutter/testing/testing.h" diff --git a/engine/src/flutter/testing/assertions_skia.cc b/engine/src/flutter/testing/assertions_skia.cc index 856ddf1972..a8e036d973 100644 --- a/engine/src/flutter/testing/assertions_skia.cc +++ b/engine/src/flutter/testing/assertions_skia.cc @@ -4,8 +4,7 @@ #include "flutter/testing/assertions_skia.h" -namespace flutter { -namespace testing { +namespace std { std::ostream& operator<<(std::ostream& os, const SkClipOp& o) { switch (o) { @@ -100,5 +99,4 @@ std::ostream& operator<<(std::ostream& os, const SkSamplingOptions& s) { } } -} // namespace testing -} // namespace flutter +} // namespace std diff --git a/engine/src/flutter/testing/assertions_skia.h b/engine/src/flutter/testing/assertions_skia.h index 663ab57f3b..c1e3764ca3 100644 --- a/engine/src/flutter/testing/assertions_skia.h +++ b/engine/src/flutter/testing/assertions_skia.h @@ -16,8 +16,7 @@ #include "third_party/skia/include/core/SkRRect.h" #include "third_party/skia/include/core/SkSamplingOptions.h" -namespace flutter { -namespace testing { +namespace std { extern std::ostream& operator<<(std::ostream& os, const SkClipOp& o); extern std::ostream& operator<<(std::ostream& os, const SkMatrix& m); @@ -33,7 +32,6 @@ extern std::ostream& operator<<(std::ostream& os, const SkColor4f& r); extern std::ostream& operator<<(std::ostream& os, const SkPaint& r); extern std::ostream& operator<<(std::ostream& os, const SkSamplingOptions& s); -} // namespace testing -} // namespace flutter +} // namespace std #endif // FLUTTER_TESTING_ASSERTIONS_SKIA_H_