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

Side by Side Diff: tools/android/loading/test_utils.py

Issue 1888343003: Clovis: contentful paint upgrades. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@url-rename
Patch Set: rebase Created 4 years, 7 months 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
« no previous file with comments | « tools/android/loading/request_track.py ('k') | tools/android/loading/tracing.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Common utilities used in unit tests, within this directory.""" 5 """Common utilities used in unit tests, within this directory."""
6 6
7 import dependency_graph 7 import dependency_graph
8 import devtools_monitor 8 import devtools_monitor
9 import loading_trace 9 import loading_trace
10 import page_track 10 import page_track
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 def SyncRequest(self, method, params=None): 215 def SyncRequest(self, method, params=None):
216 """Mocked method.""" 216 """Mocked method."""
217 expected_params, response = self._expected_responses[method].pop(0) 217 expected_params, response = self._expected_responses[method].pop(0)
218 if not self._expected_responses[method]: 218 if not self._expected_responses[method]:
219 del self._expected_responses[method] 219 del self._expected_responses[method]
220 self._test_case.assertEqual(expected_params, params) 220 self._test_case.assertEqual(expected_params, params)
221 return response 221 return response
222 222
223 223
224 class MockUserSatisfiedLens(user_satisfied_lens._UserSatisfiedLens): 224 class MockUserSatisfiedLens(user_satisfied_lens._FirstEventLens):
225 def _CalculateTimes(self, _): 225 def _CalculateTimes(self, _):
226 self._satisfied_msec = float('inf') 226 self._satisfied_msec = float('inf')
227 self._event_msec = float('inf') 227 self._event_msec = float('inf')
OLDNEW
« no previous file with comments | « tools/android/loading/request_track.py ('k') | tools/android/loading/tracing.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698