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

Unified Diff: trunk/tools/deps2git/svn_to_git_public_unittest.py

Issue 651833002: Revert 292399 "deps2git: Improve support for WebRTC and its deps." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 2 months 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
« no previous file with comments | « trunk/tools/deps2git/svn_to_git_public.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/tools/deps2git/svn_to_git_public_unittest.py
===================================================================
--- trunk/tools/deps2git/svn_to_git_public_unittest.py (revision 292419)
+++ trunk/tools/deps2git/svn_to_git_public_unittest.py (working copy)
@@ -1,27 +0,0 @@
-#!/usr/bin/env python
-# 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 unittest
-
-import svn_to_git_public
-
-
-class SvnUrlToGitUrlTest(unittest.TestCase):
- def testWebRtcUrls(self):
- expected = {
- 'deps/third_party/foo': 'external/webrtc/deps/third_party/foo',
- 'trunk': 'external/webrtc',
- 'trunk/bar': 'external/webrtc/trunk/bar',
- }
- svn_base_url = 'https://webrtc.googlecode.com/svn'
-
- path = 'just/some/path'
- for k, v in expected.iteritems():
- res = svn_to_git_public.SvnUrlToGitUrl(path, '%s/%s' % (svn_base_url, k))
- self.assertEqual(res[0], path)
- self.assertEqual(res[1], '%s%s.git' % (svn_to_git_public.GIT_HOST, v))
-
-if __name__ == '__main__':
- unittest.main()
« no previous file with comments | « trunk/tools/deps2git/svn_to_git_public.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698