Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / trace-viewer / build / generate_about_tracing_contents_unittest.py
1 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4 import base64
5 import unittest
6 import tempfile
7 import shutil
8
9 from build import generate_about_tracing_contents
10
11 class GenerateAboutTracingContentsUnittTest(unittest.TestCase):
12   def test_smokeTest(self):
13     try:
14       tmpdir = tempfile.mkdtemp()
15       res = generate_about_tracing_contents.main(['--outdir', tmpdir])
16       assert res == 0
17     finally:
18       shutil.rmtree(tmpdir)