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

Side by Side Diff: tools/chrome_remote_control/chrome_remote_control/interaction.py

Issue 11273081: Adding a test for measuring memory usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/chrome_remote_control/chrome_remote_control/page_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4 class InteractionNotSupported(Exception):
5 pass
6
7 class InteractionFailed(Exception):
8 pass
9
10 class Interaction(object):
11 """Represents an interaction that a user might try to perform to a page."""
12
13 def CustomizeBrowserOptions(self, options):
14 """Override to add test-specific options to the BrowserOptions object"""
15 pass
16
17 def SupportedForPage(self, page, tab):
18 raise NotImplementedError()
19
20 def PerformInteraction(self, page, tab, test):
21 raise NotImplementedError()
22
23 def CleanUp(self, page, tab):
24 raise NotImplementedError()
25
26 _interaction_classes = {}
tonyg 2012/11/02 18:57:34 nit: line break after this
27 def GetAllClasses():
28 return list(_interaction_classes.values())
29
30 def FindClassWithName(name):
31 return _interaction_classes.get(name)
32
33 def RegisterClass(name, interaction_class):
34 assert name not in _interaction_classes
35 _interaction_classes[name] = interaction_class
OLDNEW
« no previous file with comments | « no previous file | tools/chrome_remote_control/chrome_remote_control/page_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698