OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
4 | 4 |
5 import copy | 5 import copy |
6 import datetime | 6 import datetime |
7 import functools | 7 import functools |
8 import logging | 8 import logging |
9 import os | 9 import os |
10 import sys | 10 import sys |
11 import time | 11 import time |
12 import threading | 12 import threading |
13 | 13 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 elapsed_ms = int((time_fn() - start_time) * 1000) | 279 elapsed_ms = int((time_fn() - start_time) * 1000) |
280 http_metrics.update_http_server_metrics( | 280 http_metrics.update_http_server_metrics( |
281 endpoint_name, response_status, elapsed_ms) | 281 endpoint_name, response_status, elapsed_ms) |
282 return decorated | 282 return decorated |
283 return decorator | 283 return decorator |
284 | 284 |
285 | 285 |
286 def reset_for_unittest(disable=False): | 286 def reset_for_unittest(disable=False): |
287 shared.reset_for_unittest() | 287 shared.reset_for_unittest() |
288 interface.reset_for_unittest(disable=disable) | 288 interface.reset_for_unittest(disable=disable) |
OLD | NEW |