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

Unified Diff: testing_support/fake_repos.py

Issue 910913003: Reland "Make gclient ready for the Blink (DEPS to main project)" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Undo populateGit deflake attemp in fake_repos.py Created 5 years, 10 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 | « 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 1b77bc86650ae3979f74ed091f11395694288af8..3f908441dab3c39cd9f2682d978024d90ce23922 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