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

Unified Diff: media/tools/constrained_network_server/cns_test.py

Issue 8528049: Introduce the constrained network server. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 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: media/tools/constrained_network_server/cns_test.py
diff --git a/media/tools/constrained_network_server/cns_test.py b/media/tools/constrained_network_server/cns_test.py
new file mode 100755
index 0000000000000000000000000000000000000000..9ae726c4a43a38682398aae719f2faaf59c388a0
--- /dev/null
+++ b/media/tools/constrained_network_server/cns_test.py
@@ -0,0 +1,35 @@
+#!/usr/bin/python
+
+# Copyright (c) 2011 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.
+
+"""Tests for Constrained Network Server."""
+
+import unittest
+
+
+class PortAllocatorTest(unittest.TestCase):
+ """Unit tests for the Port Allocator class."""
+
+ # TODO(dalecurtis): Find some mocking library or add mock flag to class.
+ # TODO(dalecurtis): Test uncached Get()
+ # TODO(dalecurtis): Test Get() calls cleanup.
+ # TODO(dalecurtis): Test cleanup() w/ reduced expiry time.
+ # TODO(dalecurtis): Test cleanup(all=true)
+ pass
+
+
+class ConstrainedNetworkServerTest(unittest.TestCase):
+ """End to end tests for ConstrainedNetworkServer system."""
+
+ # TODO(dalecurtis): Start/stop server method.
+ # TODO(dalecurtis): Start server, verify invalid/missing parameters/files.
+ # TODO(dalecurtis): Test normal and cached request. Verify redirect and port.
+ # Verify that constraints are set (how?). Stop server, verify ports are
+ # cleaned up.
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()

Powered by Google App Engine
This is Rietveld 408576698