# Copyright 2014 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.
+
import sys
+import unittest
from telemetry.core.platform.profiler import vtune_profiler
from telemetry.unittest import options_for_unittests
from telemetry.unittest import simple_mock
from telemetry.unittest import tab_test_case
+
class MockPopen(object):
def __init__(self, returncode, stdout=None, stderr=None):
self.returncode = returncode
return False
-class TestVTuneProfiler(tab_test_case.TabTestCase):
- def setUp(self):
- super(TestVTuneProfiler, self).setUp()
+class TestVTuneProfiler(unittest.TestCase):
def testVTuneProfilerIsSupported(self):
options = options_for_unittests.GetCopy()
finally:
vtune_profiler.subprocess = real_subprocess
+
+class TestVTuneProfilerTabTestCase(tab_test_case.TabTestCase):
+
def testVTuneProfiler(self):
mock_subprocess = MockSubprocess()
real_subprocess = vtune_profiler.subprocess