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

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: Code review (tonyg, nduca) 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..5e93cf84b74675ba52db83d20d47d9f9c479cbea 100644
--- a/tools/telemetry/telemetry/compound_interaction.py
+++ b/tools/telemetry/telemetry/compound_interaction.py
@@ -6,12 +6,17 @@ 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 = []
+ from telemetry import all_page_interactions
for interaction_data in self.actions:
- interaction = page_interaction.FindClassWithName(
+ interaction = all_page_interactions.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)
-page_interaction.RegisterClass('compound', CompoundInteraction)
+ def PerformInteraction(self, page, tab):
+ for interaction in self._interaction_list:
+ interaction.PerformInteraction(page, tab)
« no previous file with comments | « tools/telemetry/telemetry/click_to_navigate_interaction.py ('k') | tools/telemetry/telemetry/compound_interaction_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698