OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from branch_utility import BranchUtility | 5 from branch_utility import BranchUtility |
6 | 6 |
7 class TestBranchUtility(object): | 7 class TestBranchUtility(object): |
8 '''Mimics BranchUtility to return valid-ish data without needing omahaproxy | 8 '''Mimics BranchUtility to return valid-ish data without needing omahaproxy |
9 data. | 9 data. |
10 ''' | 10 ''' |
11 def GetBranchForChannel(self, channel_name): | 11 def GetChannelInfo(self, channel_name): |
12 return channel_name | 12 class TestChannelInfo(object): |
| 13 def __init__(self, name, branch, version): |
| 14 self.name = name |
| 15 self.branch = branch |
| 16 self.version = version |
| 17 |
| 18 return TestChannelInfo(channel_name, 0, 0) |
OLD | NEW |