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

Unified Diff: tools/chrome_remote_control/chrome_remote_control/page_set_unittest.py

Issue 11361165: [chrome_remote_control] Rename chrome_remote_control to telemetry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/chrome_remote_control/chrome_remote_control/page_set_unittest.py
diff --git a/tools/chrome_remote_control/chrome_remote_control/page_set_unittest.py b/tools/chrome_remote_control/chrome_remote_control/page_set_unittest.py
deleted file mode 100644
index e982e32b6444f3dfc1edba8213fa45fe972dd1e4..0000000000000000000000000000000000000000
--- a/tools/chrome_remote_control/chrome_remote_control/page_set_unittest.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright (c) 2012 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.
-import tempfile
-import unittest
-
-from chrome_remote_control import page_set
-
-simple_set = """
-{"description": "hello",
- "archive_path": "foo.wpr",
- "pages": [
- {"url": "http://www.foo.com/"}
- ]
-}
-"""
-
-class TestPageSet(unittest.TestCase):
- def testSimpleSet(self):
- with tempfile.NamedTemporaryFile() as f:
- f.write(simple_set)
- f.flush()
- ps = page_set.PageSet.FromFile(f.name)
-
- self.assertEquals('hello', ps.description)
- self.assertEquals('foo.wpr', ps.archive_path)
- self.assertEquals(1, len(ps.pages))
- self.assertEquals('http://www.foo.com/', ps.pages[0].url)

Powered by Google App Engine
This is Rietveld 408576698