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

Unified Diff: tests/gclient_test.py

Issue 233333003: Make it possible to refer to github-style URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Added another test for the LateOverride to work correctly with scp-style urls. Created 6 years, 8 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 | « gclient_utils.py ('k') | tests/gclient_utils_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gclient_test.py
diff --git a/tests/gclient_test.py b/tests/gclient_test.py
index ea61b0a1d55caf495c031ecb0e18b9fc20eefd05..e3baa0f612968a184f153d71d9ff5dfb9416887f 100755
--- a/tests/gclient_test.py
+++ b/tests/gclient_test.py
@@ -559,6 +559,15 @@ class GclientTest(trial_dir.TestCase):
self.assertEqual(result, expected_deps)
self.assertEqual(deps, orig_deps)
+
+ def testLateOverride(self):
+ """Verifies expected behavior of LateOverride."""
+ url = "git@github.com:dart-lang/spark.git"
+ d = gclient.Dependency(None, 'name', 'url',
+ None, None, None, None, None, '', True)
+ late_url = d.LateOverride(url)
+ self.assertEquals(url, late_url)
+
def testDepsOsOverrideDepsInDepsFile(self):
"""Verifies that a 'deps_os' path can override a 'deps' path. Also
see testUpdateWithOsDeps above.
« no previous file with comments | « gclient_utils.py ('k') | tests/gclient_utils_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698