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

Side by Side Diff: commit-queue/verification/fake.py

Issue 135363007: Delete public commit queue to avoid confusion after move to internal repo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « commit-queue/verification/base.py ('k') | commit-queue/verification/presubmit_check.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # coding=utf8
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5 """A verifier that does nothing."""
6
7 from verification import base
8
9
10 class FakeVerifier(base.Verifier):
11 name = 'fake'
12
13 def __init__(self, state):
14 super(FakeVerifier, self).__init__()
15 self.state = state
16
17 def verify(self, pending):
18 pending.verifications[self.name] = base.SimpleStatus(self.state)
19
20 def update_status(self, queue):
21 pass
22
23
24 class DeferredFakeVerifier(base.Verifier):
25 name = 'fake'
26
27 def __init__(self, state, delay):
28 super(DeferredFakeVerifier, self).__init__()
29 self.state = state
30 self.delay = delay
31
32 def verify(self, pending):
33 pending.verifications[self.name] = base.SimpleStatus()
34
35 def update_status(self, queue):
36 if self.delay:
37 self.delay -= 1
38 return
39
40 for _, fake in self.loop(queue, base.SimpleStatus, True):
41 fake.state = self.state
OLDNEW
« no previous file with comments | « commit-queue/verification/base.py ('k') | commit-queue/verification/presubmit_check.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698