| OLD | NEW |
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package buildbot | 5 package buildbot |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "fmt" | 8 "fmt" |
| 9 | 9 |
| 10 "github.com/luci/luci-go/appengine/cmd/milo/resp" | 10 "github.com/luci/luci-go/appengine/cmd/milo/resp" |
| 11 "github.com/luci/luci-go/appengine/cmd/milo/settings" | 11 "github.com/luci/luci-go/appengine/cmd/milo/settings" |
| 12 "github.com/luci/luci-go/common/clock/testclock" | 12 "github.com/luci/luci-go/common/clock/testclock" |
| 13 "github.com/luci/luci-go/server/templates" | 13 "github.com/luci/luci-go/server/templates" |
| 14 "golang.org/x/net/context" | 14 "golang.org/x/net/context" |
| 15 ) | 15 ) |
| 16 | 16 |
| 17 // We put this here because _test.go files are sometimes not built. | 17 // We put this here because _test.go files are sometimes not built. |
| 18 var testCases = []struct { | 18 var testCases = []struct { |
| 19 builder string | 19 builder string |
| 20 build string | 20 build string |
| 21 }{ | 21 }{ |
| 22 {"CrWinGoma", "30608"}, | 22 {"CrWinGoma", "30608"}, |
| 23 {"win_chromium_rel_ng", "246309"}, |
| 23 } | 24 } |
| 24 | 25 |
| 25 // TestableBuild is a subclass of Build that interfaces with TestableHandler and | 26 // TestableBuild is a subclass of Build that interfaces with TestableHandler and |
| 26 // includes sample test data. | 27 // includes sample test data. |
| 27 type TestableBuild struct{ Build } | 28 type TestableBuild struct{ Build } |
| 28 | 29 |
| 29 // TestableBuilder is a subclass of Builder that interfaces with TestableHandler | 30 // TestableBuilder is a subclass of Builder that interfaces with TestableHandler |
| 30 // and includes sample test data. | 31 // and includes sample test data. |
| 31 type TestableBuilder struct{ Builder } | 32 type TestableBuilder struct{ Builder } |
| 32 | 33 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 URL: "Some URL", | 95 URL: "Some URL", |
| 95 Label: "Some finished bu
ild", | 96 Label: "Some finished bu
ild", |
| 96 Build: bb, | 97 Build: bb, |
| 97 }, | 98 }, |
| 98 }, | 99 }, |
| 99 }, | 100 }, |
| 100 }, | 101 }, |
| 101 }, | 102 }, |
| 102 } | 103 } |
| 103 } | 104 } |
| OLD | NEW |