Commit 225e1952 by Cody Northrop Committed by Commit Bot

Tests: Add Plants vs. Zombies 2 trace

Test: angle_perftests --gtest_filter="*plants_vs_zombies_2*" TBR: jmadill@google.com,timvp@google.com Bug: b/182512556 Bug: angleproject:5749 Change-Id: Ib6c279f49ac95964f34e430d311a49600928166b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2752898Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Commit-Queue: Cody Northrop <cnorthrop@google.com>
parent efbb5667
{ {
"src/tests/restricted_traces/.gitignore": "src/tests/restricted_traces/.gitignore":
"83d16125dfbbfa783bdceacb5379c5dd", "109f280e7cbf8147446642d5c39a9987",
"src/tests/restricted_traces/aliexpress.tar.gz.sha1": "src/tests/restricted_traces/aliexpress.tar.gz.sha1":
"12f48ff0c4ca7980ea879c81b0c9518b", "12f48ff0c4ca7980ea879c81b0c9518b",
"src/tests/restricted_traces/among_us.tar.gz.sha1": "src/tests/restricted_traces/among_us.tar.gz.sha1":
...@@ -83,6 +83,8 @@ ...@@ -83,6 +83,8 @@
"9a97bffd4c6c156a14308bb1c6f50a7e", "9a97bffd4c6c156a14308bb1c6f50a7e",
"src/tests/restricted_traces/one_punch_man.tar.gz.sha1": "src/tests/restricted_traces/one_punch_man.tar.gz.sha1":
"d7af01fd688a3cbbb9b7d58ed31620fb", "d7af01fd688a3cbbb9b7d58ed31620fb",
"src/tests/restricted_traces/plants_vs_zombies_2.tar.gz.sha1":
"fe1d7c220de5c5942195c0bc56267149",
"src/tests/restricted_traces/pubg_mobile_lite.tar.gz.sha1": "src/tests/restricted_traces/pubg_mobile_lite.tar.gz.sha1":
"6a77372489ee4b43639b684a39ab8d71", "6a77372489ee4b43639b684a39ab8d71",
"src/tests/restricted_traces/raid_shadow_legends.tar.gz.sha1": "src/tests/restricted_traces/raid_shadow_legends.tar.gz.sha1":
...@@ -92,13 +94,13 @@ ...@@ -92,13 +94,13 @@
"src/tests/restricted_traces/real_gangster_crime.tar.gz.sha1": "src/tests/restricted_traces/real_gangster_crime.tar.gz.sha1":
"c85be329035a760edad673eb2ca7c3f1", "c85be329035a760edad673eb2ca7c3f1",
"src/tests/restricted_traces/restricted_traces.json": "src/tests/restricted_traces/restricted_traces.json":
"7880ad4c4e91c5846229cd284cb41c77", "53c08acf0dbb2e5558f2ddc253cc9437",
"src/tests/restricted_traces/restricted_traces_autogen.cpp": "src/tests/restricted_traces/restricted_traces_autogen.cpp":
"f9142bd09a7ded41d7150e318cd6a83c", "ee4443af895aceb575c1ace1bb202c6a",
"src/tests/restricted_traces/restricted_traces_autogen.gni": "src/tests/restricted_traces/restricted_traces_autogen.gni":
"7af9b67cac7f45a909132faae86252aa", "3f1dc277b29c6883497b6960ccba9e5e",
"src/tests/restricted_traces/restricted_traces_autogen.h": "src/tests/restricted_traces/restricted_traces_autogen.h":
"43aac5e082749b30978740020e8e7e8d", "efa301ef19ee3fe951b3a5ca945a0066",
"src/tests/restricted_traces/rise_of_kingdoms.tar.gz.sha1": "src/tests/restricted_traces/rise_of_kingdoms.tar.gz.sha1":
"d4618f857c44f0dfa642ae3af8f161d9", "d4618f857c44f0dfa642ae3af8f161d9",
"src/tests/restricted_traces/romancing_saga.tar.gz.sha1": "src/tests/restricted_traces/romancing_saga.tar.gz.sha1":
......
...@@ -78,6 +78,8 @@ nba2k20_800.tar.gz ...@@ -78,6 +78,8 @@ nba2k20_800.tar.gz
nba2k20_800/ nba2k20_800/
one_punch_man.tar.gz one_punch_man.tar.gz
one_punch_man/ one_punch_man/
plants_vs_zombies_2.tar.gz
plants_vs_zombies_2/
pubg_mobile_lite.tar.gz pubg_mobile_lite.tar.gz
pubg_mobile_lite/ pubg_mobile_lite/
raid_shadow_legends.tar.gz raid_shadow_legends.tar.gz
......
e2db39e5a073c34a69986537684de2512ccb0602
\ No newline at end of file
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
"mobile_legends", "mobile_legends",
"nba2k20_800", "nba2k20_800",
"one_punch_man", "one_punch_man",
"plants_vs_zombies_2",
"pubg_mobile_lite", "pubg_mobile_lite",
"raid_shadow_legends", "raid_shadow_legends",
"real_commando_secret_mission", "real_commando_secret_mission",
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
#include "mobile_legends/mobile_legends_capture_context1.h" #include "mobile_legends/mobile_legends_capture_context1.h"
#include "nba2k20_800/nba2k20_800_capture_context1.h" #include "nba2k20_800/nba2k20_800_capture_context1.h"
#include "one_punch_man/one_punch_man_capture_context3.h" #include "one_punch_man/one_punch_man_capture_context3.h"
#include "plants_vs_zombies_2/plants_vs_zombies_2_capture_context1.h"
#include "pubg_mobile_lite/pubg_mobile_lite_capture_context1.h" #include "pubg_mobile_lite/pubg_mobile_lite_capture_context1.h"
#include "raid_shadow_legends/raid_shadow_legends_capture_context2.h" #include "raid_shadow_legends/raid_shadow_legends_capture_context2.h"
#include "real_commando_secret_mission/real_commando_secret_mission_capture_context1.h" #include "real_commando_secret_mission/real_commando_secret_mission_capture_context1.h"
...@@ -265,6 +266,11 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = { ...@@ -265,6 +266,11 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = {
one_punch_man::kReplayContextClientMinorVersion, one_punch_man::kReplayFrameStart, one_punch_man::kReplayContextClientMinorVersion, one_punch_man::kReplayFrameStart,
one_punch_man::kReplayFrameEnd, one_punch_man::kReplayDrawSurfaceWidth, one_punch_man::kReplayFrameEnd, one_punch_man::kReplayDrawSurfaceWidth,
one_punch_man::kReplayDrawSurfaceHeight, "one_punch_man"}}, one_punch_man::kReplayDrawSurfaceHeight, "one_punch_man"}},
{RestrictedTraceID::plants_vs_zombies_2,
{plants_vs_zombies_2::kReplayContextClientMajorVersion,
plants_vs_zombies_2::kReplayContextClientMinorVersion, plants_vs_zombies_2::kReplayFrameStart,
plants_vs_zombies_2::kReplayFrameEnd, plants_vs_zombies_2::kReplayDrawSurfaceWidth,
plants_vs_zombies_2::kReplayDrawSurfaceHeight, "plants_vs_zombies_2"}},
{RestrictedTraceID::pubg_mobile_lite, {RestrictedTraceID::pubg_mobile_lite,
{kDefaultReplayContextClientMajorVersion, kDefaultReplayContextClientMinorVersion, {kDefaultReplayContextClientMajorVersion, kDefaultReplayContextClientMinorVersion,
pubg_mobile_lite::kReplayFrameStart, pubg_mobile_lite::kReplayFrameEnd, pubg_mobile_lite::kReplayFrameStart, pubg_mobile_lite::kReplayFrameEnd,
...@@ -494,6 +500,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex) ...@@ -494,6 +500,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex)
case RestrictedTraceID::one_punch_man: case RestrictedTraceID::one_punch_man:
one_punch_man::ReplayContext3Frame(frameIndex); one_punch_man::ReplayContext3Frame(frameIndex);
break; break;
case RestrictedTraceID::plants_vs_zombies_2:
plants_vs_zombies_2::ReplayContext1Frame(frameIndex);
break;
case RestrictedTraceID::pubg_mobile_lite: case RestrictedTraceID::pubg_mobile_lite:
pubg_mobile_lite::ReplayContext1Frame(frameIndex); pubg_mobile_lite::ReplayContext1Frame(frameIndex);
break; break;
...@@ -685,6 +694,9 @@ void ResetReplay(RestrictedTraceID traceID) ...@@ -685,6 +694,9 @@ void ResetReplay(RestrictedTraceID traceID)
case RestrictedTraceID::one_punch_man: case RestrictedTraceID::one_punch_man:
one_punch_man::ResetContext3Replay(); one_punch_man::ResetContext3Replay();
break; break;
case RestrictedTraceID::plants_vs_zombies_2:
plants_vs_zombies_2::ResetContext1Replay();
break;
case RestrictedTraceID::pubg_mobile_lite: case RestrictedTraceID::pubg_mobile_lite:
pubg_mobile_lite::ResetContext1Replay(); pubg_mobile_lite::ResetContext1Replay();
break; break;
...@@ -876,6 +888,9 @@ void SetupReplay(RestrictedTraceID traceID) ...@@ -876,6 +888,9 @@ void SetupReplay(RestrictedTraceID traceID)
case RestrictedTraceID::one_punch_man: case RestrictedTraceID::one_punch_man:
one_punch_man::SetupContext3Replay(); one_punch_man::SetupContext3Replay();
break; break;
case RestrictedTraceID::plants_vs_zombies_2:
plants_vs_zombies_2::SetupContext1Replay();
break;
case RestrictedTraceID::pubg_mobile_lite: case RestrictedTraceID::pubg_mobile_lite:
pubg_mobile_lite::SetupContext1Replay(); pubg_mobile_lite::SetupContext1Replay();
break; break;
...@@ -1067,6 +1082,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir) ...@@ -1067,6 +1082,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir)
case RestrictedTraceID::one_punch_man: case RestrictedTraceID::one_punch_man:
one_punch_man::SetBinaryDataDir(dataDir); one_punch_man::SetBinaryDataDir(dataDir);
break; break;
case RestrictedTraceID::plants_vs_zombies_2:
plants_vs_zombies_2::SetBinaryDataDir(dataDir);
break;
case RestrictedTraceID::pubg_mobile_lite: case RestrictedTraceID::pubg_mobile_lite:
pubg_mobile_lite::SetBinaryDataDir(dataDir); pubg_mobile_lite::SetBinaryDataDir(dataDir);
break; break;
...@@ -1258,6 +1276,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba ...@@ -1258,6 +1276,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba
case RestrictedTraceID::one_punch_man: case RestrictedTraceID::one_punch_man:
one_punch_man::SetBinaryDataDecompressCallback(callback); one_punch_man::SetBinaryDataDecompressCallback(callback);
break; break;
case RestrictedTraceID::plants_vs_zombies_2:
plants_vs_zombies_2::SetBinaryDataDecompressCallback(callback);
break;
case RestrictedTraceID::pubg_mobile_lite: case RestrictedTraceID::pubg_mobile_lite:
pubg_mobile_lite::SetBinaryDataDecompressCallback(callback); pubg_mobile_lite::SetBinaryDataDecompressCallback(callback);
break; break;
......
...@@ -49,6 +49,7 @@ angle_restricted_traces = [ ...@@ -49,6 +49,7 @@ angle_restricted_traces = [
"mobile_legends 1", "mobile_legends 1",
"nba2k20_800 1", "nba2k20_800 1",
"one_punch_man 3", "one_punch_man 3",
"plants_vs_zombies_2 1",
"pubg_mobile_lite 1", "pubg_mobile_lite 1",
"raid_shadow_legends 2", "raid_shadow_legends 2",
"real_commando_secret_mission 1", "real_commando_secret_mission 1",
......
...@@ -94,6 +94,7 @@ enum class RestrictedTraceID ...@@ -94,6 +94,7 @@ enum class RestrictedTraceID
mobile_legends, mobile_legends,
nba2k20_800, nba2k20_800,
one_punch_man, one_punch_man,
plants_vs_zombies_2,
pubg_mobile_lite, pubg_mobile_lite,
raid_shadow_legends, raid_shadow_legends,
real_commando_secret_mission, real_commando_secret_mission,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment