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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github_mock.py

Issue 2578473002: chrome.audio API: treat mute as system wide property (Closed)
Patch Set: . Created 3 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
OLDNEW
1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5
1 class MockWPTGitHub(object): 6 class MockWPTGitHub(object):
2 7
3 def __init__(self, pull_requests, unsuccessful_merge=False): 8 def __init__(self, pull_requests, unsuccessful_merge=False):
4 self.pull_requests = pull_requests 9 self.pull_requests = pull_requests
5 self.unsuccessful_merge = unsuccessful_merge 10 self.unsuccessful_merge = unsuccessful_merge
6 self.calls = [] 11 self.calls = []
7 self.pull_requests_created = [] 12 self.pull_requests_created = []
8 13
9 def in_flight_pull_requests(self): 14 def in_flight_pull_requests(self):
10 self.calls.append('in_flight_pull_requests') 15 self.calls.append('in_flight_pull_requests')
(...skipping 10 matching lines...) Expand all
21 assert remote_branch_name 26 assert remote_branch_name
22 assert desc_title 27 assert desc_title
23 assert body 28 assert body
24 29
25 self.pull_requests_created.append((remote_branch_name, desc_title, body) ) 30 self.pull_requests_created.append((remote_branch_name, desc_title, body) )
26 31
27 return {} 32 return {}
28 33
29 def delete_remote_branch(self, _): 34 def delete_remote_branch(self, _):
30 self.calls.append('delete_remote_branch') 35 self.calls.append('delete_remote_branch')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698