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

Unified Diff: swarm_client/googletest/tests/list_test_cases_smoke_test.py

Issue 69143004: Delete swarm_client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: swarm_client/googletest/tests/list_test_cases_smoke_test.py
===================================================================
--- swarm_client/googletest/tests/list_test_cases_smoke_test.py (revision 235167)
+++ swarm_client/googletest/tests/list_test_cases_smoke_test.py (working copy)
@@ -1,40 +0,0 @@
-#!/usr/bin/env python
-# Copyright 2013 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 logging
-import os
-import subprocess
-import sys
-import unittest
-
-ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-
-
-class ListTestCases(unittest.TestCase):
- def capture(self, cmd):
- p = subprocess.Popen(
- [sys.executable] + cmd,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
- cwd=ROOT_DIR,
- universal_newlines=True)
- out, err = p.communicate()
- self.assertEqual('', err)
- self.assertEqual(0, p.returncode)
- return out
-
- def test_default(self):
- out = self.capture(
- [
- 'list_test_cases.py',
- os.path.join('tests', 'gtest_fake', 'gtest_fake_pass.py'),
- ])
- self.assertEqual('Foo.Bar/3\nFoo.Bar1\nFoo.Bar2\n', out)
-
-
-if __name__ == '__main__':
- logging.basicConfig(
- level=(logging.DEBUG if '-v' in sys.argv else logging.FATAL))
- unittest.main()
« no previous file with comments | « swarm_client/googletest/tests/isolate_test_cases_smoke_test.py ('k') | swarm_client/googletest/tests/run_test_cases/output.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698