Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: tools/telemetry/telemetry/compound_interaction.py

Issue 11273081: Adding a test for measuring memory usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/compound_interaction.py
diff --git a/tools/telemetry/telemetry/compound_interaction.py b/tools/telemetry/telemetry/compound_interaction.py
index 2ff48b036dbe2c7da56291ec6de5a0a9061f2c96..cdbdc97d7997e7b29281a5586ea244220ef2319b 100644
--- a/tools/telemetry/telemetry/compound_interaction.py
+++ b/tools/telemetry/telemetry/compound_interaction.py
@@ -6,12 +6,18 @@ from telemetry import page_interaction
class CompoundInteraction(page_interaction.PageInteraction):
def __init__(self, attributes=None):
super(CompoundInteraction, self).__init__(attributes)
-
- def PerformInteraction(self, page, tab):
+ self._interaction_list = []
for interaction_data in self.actions:
interaction = page_interaction.FindClassWithName(
interaction_data['action'])(interaction_data)
- interaction.PerformInteraction(page, tab)
+ self._interaction_list.append(interaction)
+ def CustomizeBrowserOptions(self, options):
+ for interaction in self._interaction_list:
+ interaction.CustomizeBrowserOptions(options)
+
+ def PerformInteraction(self, page, tab):
+ for interaction in self._interaction_list:
+ interaction.PerformInteraction(page, tab)
page_interaction.RegisterClass('compound', CompoundInteraction)

Powered by Google App Engine
This is Rietveld 408576698