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

Unified Diff: tools/auto_bisect/bisect_perf_regression_test.py

Issue 800143003: Sync android-chrome revision along with chromium on android-chrome platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « tools/auto_bisect/bisect_perf_regression.py ('k') | tools/auto_bisect/bisect_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/auto_bisect/bisect_perf_regression_test.py
diff --git a/tools/auto_bisect/bisect_perf_regression_test.py b/tools/auto_bisect/bisect_perf_regression_test.py
index df5f279baa3f3e8a8379b0f2c62c29edd82704ae..c10ed78a1fa3bc2d0ddeb75a86f66d0045476a7e 100644
--- a/tools/auto_bisect/bisect_perf_regression_test.py
+++ b/tools/auto_bisect/bisect_perf_regression_test.py
@@ -430,6 +430,32 @@ class BisectPerfRegressionTest(unittest.TestCase):
ss = re.compile('["\']%s["\']: ["\']%s["\']' % (deps_key, git_revision))
self.assertIsNotNone(re.search(ss, updated_content))
+ @mock.patch('bisect_utils.RunGClient')
+ def testSyncToRevisionForChromium(self, mock_RunGClient):
+ bisect_instance = _GetBisectPerformanceMetricsInstance(DEFAULT_OPTIONS)
+ bisect_instance._SyncRevision(
+ 'chromium', 'e6db23a037cad47299a94b155b95eebd1ee61a58', 'gclient')
+ expected_params = [
+ 'sync',
+ '--verbose',
+ '--nohooks',
+ '--force',
+ '--delete_unversioned_trees',
+ '--revision',
+ 'src@e6db23a037cad47299a94b155b95eebd1ee61a58'
+ ]
+
+ mock_RunGClient.assert_called_with(expected_params, cwd=None)
+
+ @mock.patch('bisect_utils.RunGit')
+ def testSyncToRevisionForWebKit(self, mock_RunGit):
+ bisect_instance = _GetBisectPerformanceMetricsInstance(DEFAULT_OPTIONS)
+ mock_RunGit.return_value = None, None
+ bisect_instance._SyncRevision(
+ 'webkit', 'a94d028e0f2c77f159b3dac95eb90c3b4cf48c61' , None)
+ expected_params = ['checkout', 'a94d028e0f2c77f159b3dac95eb90c3b4cf48c61']
+ mock_RunGit.assert_called_with(expected_params)
+
class DepotDirectoryRegistryTest(unittest.TestCase):
« no previous file with comments | « tools/auto_bisect/bisect_perf_regression.py ('k') | tools/auto_bisect/bisect_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698