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

Unified Diff: testing_support/fake_repos.py

Issue 743083002: Make gclient ready for the Blink (DEPS to main project) transition (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Fix tests Created 6 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 | « scm.py ('k') | tests/gclient_scm_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing_support/fake_repos.py
diff --git a/testing_support/fake_repos.py b/testing_support/fake_repos.py
index 25e3a9be1c1be6b4ec8415a23f56214e15e979d5..4df4509f474692849c128d029aed440afa572343 100755
--- a/testing_support/fake_repos.py
+++ b/testing_support/fake_repos.py
@@ -828,6 +828,40 @@ class FakeRepoSkiaDEPS(FakeReposBase):
})
+class FakeRepoBlinkDEPS(FakeReposBase):
+ """Simulates the Blink DEPS transition in Chrome."""
+
+ NB_GIT_REPOS = 2
+ DEPS_pre = 'deps = {"src/third_party/WebKit": "%(git_base)srepo_2",}'
+ DEPS_post = 'deps = {}'
+
+ def populateGit(self):
+ # Blink repo.
+ self._commit_git('repo_2', {
+ 'OWNERS': 'OWNERS-pre',
+ 'Source/exists_always': '_ignored_',
+ 'Source/exists_before_but_not_after': '_ignored_',
+ })
+
+ # Chrome repo.
+ self._commit_git('repo_1', {
+ 'DEPS': self.DEPS_pre % {'git_base': self.git_base},
+ 'myfile': 'myfile@1',
+ '.gitignore': '/third_party/WebKit',
+ })
+ self._commit_git('repo_1', {
+ 'DEPS': self.DEPS_post % {'git_base': self.git_base},
+ 'myfile': 'myfile@2',
+ '.gitignore': '',
+ 'third_party/WebKit/OWNERS': 'OWNERS-post',
+ 'third_party/WebKit/Source/exists_always': '_ignored_',
+ 'third_party/WebKit/Source/exists_after_but_not_before': '_ignored',
+ })
+
+ def populateSvn(self):
+ raise NotImplementedError()
+
+
class FakeReposTestBase(trial_dir.TestCase):
"""This is vaguely inspired by twisted."""
# Static FakeRepos instances. Lazy loaded.
« no previous file with comments | « scm.py ('k') | tests/gclient_scm_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698