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

Unified Diff: tools/telemetry/unittest_data/page_sets/example_domain.py

Issue 902013002: Add end-to-end page run tests that exercise Web Page Replay. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
Index: tools/telemetry/unittest_data/page_sets/example_domain.py
diff --git a/tools/telemetry/unittest_data/page_sets/example_domain.py b/tools/telemetry/unittest_data/page_sets/example_domain.py
new file mode 100644
index 0000000000000000000000000000000000000000..f5c78546f43f849bcd49fc0a50867045c3998fea
--- /dev/null
+++ b/tools/telemetry/unittest_data/page_sets/example_domain.py
@@ -0,0 +1,26 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from telemetry.page import page
+from telemetry.page import page_set
+
+
+class ExampleDomainPageSet(page_set.PageSet):
nednguyen 2015/02/05 22:12:48 Maybe NonSSLExampleDomainPageSet
slamm 2015/02/05 23:29:11 I combined the page sets instead. Using two separa
+ def __init__(self):
+ super(ExampleDomainPageSet, self).__init__(
+ archive_data_file='data/example_domain.json',
+ user_agent_type='desktop',
+ bucket=page_set.PUBLIC_BUCKET)
+
+ self.AddUserStory(page.Page('http://www.example.com', self))
+
+
+class SslExampleDomainPageSet(page_set.PageSet):
+ def __init__(self):
+ super(SslExampleDomainPageSet, self).__init__(
+ archive_data_file='data/ssl_example_domain.json',
+ user_agent_type='desktop',
+ bucket=page_set.PUBLIC_BUCKET)
+
+ self.AddUserStory(page.Page('https://www.example.com', self))

Powered by Google App Engine
This is Rietveld 408576698