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() |