| 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 # found in the LICENSE file. |
| 4 | 4 |
| 5 import base64 | 5 import base64 |
| 6 import httplib2 | 6 import httplib2 |
| 7 import json | 7 import json |
| 8 import os | 8 import os |
| 9 import tempfile | 9 import tempfile |
| 10 import unittest | 10 import unittest |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 collection = metrics_pb2.MetricsCollection(data=[metric1, metric2]) | 288 collection = metrics_pb2.MetricsCollection(data=[metric1, metric2]) |
| 289 m.send(collection) | 289 m.send(collection) |
| 290 | 290 |
| 291 | 291 |
| 292 class NullMonitorTest(unittest.TestCase): | 292 class NullMonitorTest(unittest.TestCase): |
| 293 | 293 |
| 294 def test_send(self): | 294 def test_send(self): |
| 295 m = monitors.NullMonitor() | 295 m = monitors.NullMonitor() |
| 296 metric1 = metrics_pb2.MetricsData(name='m1') | 296 metric1 = metrics_pb2.MetricsData(name='m1') |
| 297 m.send(metric1) | 297 m.send(metric1) |
| OLD | NEW |