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

Unified Diff: tools-webrtc/autoroller/unittests/roll_deps_test.py

Issue 1414343008: DEPS: Sync Git subtree mirrors instead of symlinking into chromium/src (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 4 years 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 | « tools-webrtc/autoroller/roll_deps.py ('k') | tools-webrtc/autoroller/unittests/testdata/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools-webrtc/autoroller/unittests/roll_deps_test.py
diff --git a/tools-webrtc/autoroller/unittests/roll_deps_test.py b/tools-webrtc/autoroller/unittests/roll_deps_test.py
index 20772d9d7fa29cbaf069bc370cbfc9e61a047550..98351ced8609e1f6a0adbdae20469cb7180a917b 100755
--- a/tools-webrtc/autoroller/unittests/roll_deps_test.py
+++ b/tools-webrtc/autoroller/unittests/roll_deps_test.py
@@ -19,7 +19,7 @@ SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
PARENT_DIR = os.path.join(SCRIPT_DIR, os.pardir)
sys.path.append(PARENT_DIR)
import roll_deps
-from roll_deps import CalculateChangedDepsProper, GetMatchingDepsEntries, \
+from roll_deps import CalculateChangedDeps, GetMatchingDepsEntries, \
ParseDepsDict, ParseLocalDepsFile, UpdateDepsFile
@@ -119,12 +119,12 @@ class TestRollChromiumRevision(unittest.TestCase):
self.assertEquals(len(entries), 1)
self.assertEquals(entries[0], DEPS_ENTRIES['src/build'])
- def testCalculateChangedDepsProper(self):
+ def testCalculateChangedDeps(self):
_SetupGitLsRemoteCall(self.fake,
'https://chromium.googlesource.com/chromium/src/build', BUILD_NEW_REV)
webrtc_deps = ParseLocalDepsFile(self._webrtc_depsfile)
new_cr_deps = ParseLocalDepsFile(self._new_cr_depsfile)
- changed_deps = CalculateChangedDepsProper(webrtc_deps, new_cr_deps)
+ changed_deps = CalculateChangedDeps(webrtc_deps, new_cr_deps)
self.assertEquals(len(changed_deps), 2)
self.assertEquals(changed_deps[0].path, 'src/build')
self.assertEquals(changed_deps[0].current_rev, BUILD_OLD_REV)
@@ -134,15 +134,6 @@ class TestRollChromiumRevision(unittest.TestCase):
self.assertEquals(changed_deps[1].current_rev, BUILDTOOLS_OLD_REV)
self.assertEquals(changed_deps[1].new_rev, BUILDTOOLS_NEW_REV)
- def testCalculateChangedDepsLegacy(self):
- old_cr_deps = ParseLocalDepsFile(self._old_cr_depsfile)
- new_cr_deps = ParseLocalDepsFile(self._new_cr_depsfile)
- changed_deps = CalculateChangedDepsProper(old_cr_deps, new_cr_deps)
- self.assertEquals(len(changed_deps), 1)
- self.assertEquals(changed_deps[0].path, 'src/buildtools')
- self.assertEquals(changed_deps[0].current_rev, BUILDTOOLS_OLD_REV)
- self.assertEquals(changed_deps[0].new_rev, BUILDTOOLS_NEW_REV)
-
def _SetupGitLsRemoteCall(cmd_fake, url, revision):
cmd = ['git', 'ls-remote', url, revision]
« no previous file with comments | « tools-webrtc/autoroller/roll_deps.py ('k') | tools-webrtc/autoroller/unittests/testdata/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698