diff options
author | Chris Gross <chrisgross@google.com> | 2021-05-19 11:39:13 -0700 |
---|---|---|
committer | Scott Lobdell <slobdell@google.com> | 2021-05-21 00:34:23 +0000 |
commit | 219787565ff982848d596fa8743cd132af113e6b (patch) | |
tree | 93bd3c94771fb966fdf611d38865e712fb83e969 /libs/hwui/tests/common/TestScene.cpp | |
parent | 7b4a006d559a571313e36799d93af7e3c6b69c82 (diff) | |
parent | 75eb1dd292d1800d660c5146464264b25854d318 (diff) |
Merge SP1A.210513.004
Change-Id: Ic23aece12c3bbd2b4dcf3205fdbcdd1601deabec
Diffstat (limited to 'libs/hwui/tests/common/TestScene.cpp')
-rw-r--r-- | libs/hwui/tests/common/TestScene.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/hwui/tests/common/TestScene.cpp b/libs/hwui/tests/common/TestScene.cpp index 02bcd4768a65..2c532b0a33b6 100644 --- a/libs/hwui/tests/common/TestScene.cpp +++ b/libs/hwui/tests/common/TestScene.cpp @@ -22,8 +22,9 @@ namespace test { // Not a static global because we need to force the map to be constructed // before we try to add things to it. -std::unordered_map<std::string, TestScene::Info>& TestScene::testMap() { - static std::unordered_map<std::string, TestScene::Info> testMap; +// std::map because tests sorted by name is a prettier output +std::map<std::string, TestScene::Info>& TestScene::testMap() { + static std::map<std::string, TestScene::Info> testMap; return testMap; } |