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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/python
2
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 """Tests for Constrained Network Server."""
8
9 import unittest
10
11
12 class PortAllocatorTest(unittest.TestCase):
13 """Unit tests for the Port Allocator class."""
14
15 # TODO(dalecurtis): Find some mocking library or add mock flag to class.
16 # TODO(dalecurtis): Test uncached Get()
17 # TODO(dalecurtis): Test Get() calls cleanup.
18 # TODO(dalecurtis): Test cleanup() w/ reduced expiry time.
19 # TODO(dalecurtis): Test cleanup(all=true)
20 pass
21
22
23 class ConstrainedNetworkServerTest(unittest.TestCase):
24 """End to end tests for ConstrainedNetworkServer system."""
25
26 # TODO(dalecurtis): Start/stop server method.
27 # TODO(dalecurtis): Start server, verify invalid/missing parameters/files.
28 # TODO(dalecurtis): Test normal and cached request. Verify redirect and port.
29 # Verify that constraints are set (how?). Stop server, verify ports are
30 # cleaned up.
31 pass
32
33
34 if __name__ == '__main__':
35 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698