Commit 3bb5f1ff by Cody Northrop Committed by Commit Bot

Tests: Add Clash Royale trace

Test: angle_perftests --gtest_filter="*clash_royale*" TBR: jmadill@google.com,timvp@google.com Bug: angleproject:5620 Change-Id: I13eb10dc84deffa31f0e7fd1f0382e87bf69e46e Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2677621Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Commit-Queue: Cody Northrop <cnorthrop@google.com>
parent b2de0688
{ {
"src/tests/restricted_traces/.gitignore": "src/tests/restricted_traces/.gitignore":
"905586546eba20d11842c7018f9b5a21", "5ad69636ae462aab71d1bad9e83d063c",
"src/tests/restricted_traces/angry_birds_2_1500.tar.gz.sha1": "src/tests/restricted_traces/angry_birds_2_1500.tar.gz.sha1":
"2b5d6505d6a8b6f3bbfbad2c8405a89d", "2b5d6505d6a8b6f3bbfbad2c8405a89d",
"src/tests/restricted_traces/arena_of_valor.tar.gz.sha1": "src/tests/restricted_traces/arena_of_valor.tar.gz.sha1":
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
"b0772c8cf2d3d49e49fea9fe7cff0446", "b0772c8cf2d3d49e49fea9fe7cff0446",
"src/tests/restricted_traces/clash_of_clans.tar.gz.sha1": "src/tests/restricted_traces/clash_of_clans.tar.gz.sha1":
"4e3190f8b3cdded405172d6ef1fa7fa3", "4e3190f8b3cdded405172d6ef1fa7fa3",
"src/tests/restricted_traces/clash_royale.tar.gz.sha1":
"5a2d06f461a43b7ca69ce8bbf1079aad",
"src/tests/restricted_traces/cod_mobile.tar.gz.sha1": "src/tests/restricted_traces/cod_mobile.tar.gz.sha1":
"80a697dd447e4aae4fefd3627f663c4f", "80a697dd447e4aae4fefd3627f663c4f",
"src/tests/restricted_traces/coin_master.tar.gz.sha1": "src/tests/restricted_traces/coin_master.tar.gz.sha1":
...@@ -74,13 +76,13 @@ ...@@ -74,13 +76,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":
"be1e1ba47922639d361867ebb01fdf10", "2f09fc37526983e0a377b60e6221e6a7",
"src/tests/restricted_traces/restricted_traces_autogen.cpp": "src/tests/restricted_traces/restricted_traces_autogen.cpp":
"9fbf117aedd227ad18a3d1cbf4b8f5cc", "9919a300c626aa7d99c6dc808c440911",
"src/tests/restricted_traces/restricted_traces_autogen.gni": "src/tests/restricted_traces/restricted_traces_autogen.gni":
"7c7f5a58f4f280049caf88f3fc04981f", "46a38dfd80a97795300d16b37819a5b0",
"src/tests/restricted_traces/restricted_traces_autogen.h": "src/tests/restricted_traces/restricted_traces_autogen.h":
"ce4b41bffbb134cd0fff030059820554", "c700f8da2e0981981f58a83de102bac5",
"src/tests/restricted_traces/saint_seiya_awakening.tar.gz.sha1": "src/tests/restricted_traces/saint_seiya_awakening.tar.gz.sha1":
"c9cde6bdfd9096a44d5f03d905a45a4f", "c9cde6bdfd9096a44d5f03d905a45a4f",
"src/tests/restricted_traces/shadow_fight_2.tar.gz.sha1": "src/tests/restricted_traces/shadow_fight_2.tar.gz.sha1":
......
...@@ -10,6 +10,8 @@ candy_crush_500.tar.gz ...@@ -10,6 +10,8 @@ candy_crush_500.tar.gz
candy_crush_500/ candy_crush_500/
clash_of_clans.tar.gz clash_of_clans.tar.gz
clash_of_clans/ clash_of_clans/
clash_royale.tar.gz
clash_royale/
cod_mobile.tar.gz cod_mobile.tar.gz
cod_mobile/ cod_mobile/
coin_master.tar.gz coin_master.tar.gz
......
8c072335309ce5fafeec8e4903c514ae7092ced1
\ No newline at end of file
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
"brawl_stars", "brawl_stars",
"candy_crush_500", "candy_crush_500",
"clash_of_clans", "clash_of_clans",
"clash_royale",
"cod_mobile", "cod_mobile",
"coin_master", "coin_master",
"dragon_ball_legends", "dragon_ball_legends",
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "brawl_stars/brawl_stars_capture_context1.h" #include "brawl_stars/brawl_stars_capture_context1.h"
#include "candy_crush_500/candy_crush_500_capture_context1.h" #include "candy_crush_500/candy_crush_500_capture_context1.h"
#include "clash_of_clans/clash_of_clans_capture_context1.h" #include "clash_of_clans/clash_of_clans_capture_context1.h"
#include "clash_royale/clash_royale_capture_context2.h"
#include "cod_mobile/cod_mobile_capture_context1.h" #include "cod_mobile/cod_mobile_capture_context1.h"
#include "coin_master/coin_master_capture_context2.h" #include "coin_master/coin_master_capture_context2.h"
#include "dragon_ball_legends/dragon_ball_legends_capture_context1.h" #include "dragon_ball_legends/dragon_ball_legends_capture_context1.h"
...@@ -84,6 +85,10 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = { ...@@ -84,6 +85,10 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = {
{clash_of_clans::kReplayFrameStart, clash_of_clans::kReplayFrameEnd, {clash_of_clans::kReplayFrameStart, clash_of_clans::kReplayFrameEnd,
clash_of_clans::kReplayDrawSurfaceWidth, clash_of_clans::kReplayDrawSurfaceHeight, clash_of_clans::kReplayDrawSurfaceWidth, clash_of_clans::kReplayDrawSurfaceHeight,
"clash_of_clans"}}, "clash_of_clans"}},
{RestrictedTraceID::clash_royale,
{clash_royale::kReplayFrameStart, clash_royale::kReplayFrameEnd,
clash_royale::kReplayDrawSurfaceWidth, clash_royale::kReplayDrawSurfaceHeight,
"clash_royale"}},
{RestrictedTraceID::cod_mobile, {RestrictedTraceID::cod_mobile,
{cod_mobile::kReplayFrameStart, cod_mobile::kReplayFrameEnd, {cod_mobile::kReplayFrameStart, cod_mobile::kReplayFrameEnd,
cod_mobile::kReplayDrawSurfaceWidth, cod_mobile::kReplayDrawSurfaceHeight, "cod_mobile"}}, cod_mobile::kReplayDrawSurfaceWidth, cod_mobile::kReplayDrawSurfaceHeight, "cod_mobile"}},
...@@ -255,6 +260,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex) ...@@ -255,6 +260,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex)
case RestrictedTraceID::clash_of_clans: case RestrictedTraceID::clash_of_clans:
clash_of_clans::ReplayContext1Frame(frameIndex); clash_of_clans::ReplayContext1Frame(frameIndex);
break; break;
case RestrictedTraceID::clash_royale:
clash_royale::ReplayContext2Frame(frameIndex);
break;
case RestrictedTraceID::cod_mobile: case RestrictedTraceID::cod_mobile:
cod_mobile::ReplayContext1Frame(frameIndex); cod_mobile::ReplayContext1Frame(frameIndex);
break; break;
...@@ -401,6 +409,9 @@ void ResetReplay(RestrictedTraceID traceID) ...@@ -401,6 +409,9 @@ void ResetReplay(RestrictedTraceID traceID)
case RestrictedTraceID::clash_of_clans: case RestrictedTraceID::clash_of_clans:
clash_of_clans::ResetContext1Replay(); clash_of_clans::ResetContext1Replay();
break; break;
case RestrictedTraceID::clash_royale:
clash_royale::ResetContext2Replay();
break;
case RestrictedTraceID::cod_mobile: case RestrictedTraceID::cod_mobile:
cod_mobile::ResetContext1Replay(); cod_mobile::ResetContext1Replay();
break; break;
...@@ -547,6 +558,9 @@ void SetupReplay(RestrictedTraceID traceID) ...@@ -547,6 +558,9 @@ void SetupReplay(RestrictedTraceID traceID)
case RestrictedTraceID::clash_of_clans: case RestrictedTraceID::clash_of_clans:
clash_of_clans::SetupContext1Replay(); clash_of_clans::SetupContext1Replay();
break; break;
case RestrictedTraceID::clash_royale:
clash_royale::SetupContext2Replay();
break;
case RestrictedTraceID::cod_mobile: case RestrictedTraceID::cod_mobile:
cod_mobile::SetupContext1Replay(); cod_mobile::SetupContext1Replay();
break; break;
...@@ -693,6 +707,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir) ...@@ -693,6 +707,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir)
case RestrictedTraceID::clash_of_clans: case RestrictedTraceID::clash_of_clans:
clash_of_clans::SetBinaryDataDir(dataDir); clash_of_clans::SetBinaryDataDir(dataDir);
break; break;
case RestrictedTraceID::clash_royale:
clash_royale::SetBinaryDataDir(dataDir);
break;
case RestrictedTraceID::cod_mobile: case RestrictedTraceID::cod_mobile:
cod_mobile::SetBinaryDataDir(dataDir); cod_mobile::SetBinaryDataDir(dataDir);
break; break;
...@@ -839,6 +856,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba ...@@ -839,6 +856,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba
case RestrictedTraceID::clash_of_clans: case RestrictedTraceID::clash_of_clans:
clash_of_clans::SetBinaryDataDecompressCallback(callback); clash_of_clans::SetBinaryDataDecompressCallback(callback);
break; break;
case RestrictedTraceID::clash_royale:
clash_royale::SetBinaryDataDecompressCallback(callback);
break;
case RestrictedTraceID::cod_mobile: case RestrictedTraceID::cod_mobile:
cod_mobile::SetBinaryDataDecompressCallback(callback); cod_mobile::SetBinaryDataDecompressCallback(callback);
break; break;
......
...@@ -15,6 +15,7 @@ angle_restricted_traces = [ ...@@ -15,6 +15,7 @@ angle_restricted_traces = [
"brawl_stars 1", "brawl_stars 1",
"candy_crush_500 1", "candy_crush_500 1",
"clash_of_clans 1", "clash_of_clans 1",
"clash_royale 2",
"cod_mobile 1", "cod_mobile 1",
"coin_master 2", "coin_master 2",
"dragon_ball_legends 1", "dragon_ball_legends 1",
......
...@@ -60,6 +60,7 @@ enum class RestrictedTraceID ...@@ -60,6 +60,7 @@ enum class RestrictedTraceID
brawl_stars, brawl_stars,
candy_crush_500, candy_crush_500,
clash_of_clans, clash_of_clans,
clash_royale,
cod_mobile, cod_mobile,
coin_master, coin_master,
dragon_ball_legends, dragon_ball_legends,
......
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