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

Unified Diff: telemetry/telemetry/page/__init__.py

Issue 2377373002: Add netconfigs for different network type (Closed)
Patch Set: Update test Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | telemetry/telemetry/page/page_run_end_to_end_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/page/__init__.py
diff --git a/telemetry/telemetry/page/__init__.py b/telemetry/telemetry/page/__init__.py
index 1879ededebd91e8fb5cb87d141ad799ff41fb186..880a076f36264a6996c7e160f40f9bceb96fd1af 100644
--- a/telemetry/telemetry/page/__init__.py
+++ b/telemetry/telemetry/page/__init__.py
@@ -51,6 +51,8 @@ class Page(story.Story):
if cache_temperature != cache_temperature_module.ANY:
self.grouping_keys['cache_temperature'] = cache_temperature
+ assert traffic_setting in traffic_setting_module.NETWORK_CONFIGS, (
+ 'Invalid traffic setting: %s' % traffic_setting)
self._traffic_setting = traffic_setting
# Whether to collect garbage on the page before navigating & performing
« no previous file with comments | « no previous file | telemetry/telemetry/page/page_run_end_to_end_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698