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

Side by Side Diff: appengine/chromium_build_stats/gopath/src/ninjalog/ninjalog_test.go

Issue 561633002: chromium-build-stats: show ninja_log in table format (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: fix typo Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 package ninjalog 5 package ninjalog
6 6
7 import ( 7 import (
8 "bytes" 8 "bytes"
9 "reflect" 9 "reflect"
10 "sort" 10 "sort"
(...skipping 10 matching lines...) Expand all
21 79 287 0 gen/angle/copy_compiler_dll.bat 9fb635ad5d2c1109 21 79 287 0 gen/angle/copy_compiler_dll.bat 9fb635ad5d2c1109
22 141 287 0 PepperFlash/manifest.json 324f0a0b77c37ef 22 141 287 0 PepperFlash/manifest.json 324f0a0b77c37ef
23 142 288 0 PepperFlash/libpepflashplayer.so 1e2c2b7845a4d4fe 23 142 288 0 PepperFlash/libpepflashplayer.so 1e2c2b7845a4d4fe
24 287 290 0 obj/third_party/angle/src/copy_scripts.actions_rules_cop ies.stamp b211d373de72f455 24 287 290 0 obj/third_party/angle/src/copy_scripts.actions_rules_cop ies.stamp b211d373de72f455
25 ` 25 `
26 26
27 stepsTestCase = []Step{ 27 stepsTestCase = []Step{
28 Step{ 28 Step{
29 Start: 76 * time.Millisecond, 29 Start: 76 * time.Millisecond,
30 End: 187 * time.Millisecond, 30 End: 187 * time.Millisecond,
31 Restat: time.Unix(0, 0),
32 Out: "resources/inspector/devtools_extension_api.js" , 31 Out: "resources/inspector/devtools_extension_api.js" ,
33 CmdHash: "75430546595be7c2", 32 CmdHash: "75430546595be7c2",
34 }, 33 },
35 Step{ 34 Step{
36 Start: 80 * time.Millisecond, 35 Start: 80 * time.Millisecond,
37 End: 284 * time.Millisecond, 36 End: 284 * time.Millisecond,
38 Restat: time.Unix(0, 0),
39 Out: "gen/autofill_regex_constants.cc", 37 Out: "gen/autofill_regex_constants.cc",
40 CmdHash: "fa33c8d7ce1d8791", 38 CmdHash: "fa33c8d7ce1d8791",
41 }, 39 },
42 Step{ 40 Step{
43 Start: 78 * time.Millisecond, 41 Start: 78 * time.Millisecond,
44 End: 286 * time.Millisecond, 42 End: 286 * time.Millisecond,
45 Restat: time.Unix(0, 0),
46 Out: "gen/angle/commit_id.py", 43 Out: "gen/angle/commit_id.py",
47 CmdHash: "4ede38e2c1617d8c", 44 CmdHash: "4ede38e2c1617d8c",
48 }, 45 },
49 Step{ 46 Step{
50 Start: 79 * time.Millisecond, 47 Start: 79 * time.Millisecond,
51 End: 287 * time.Millisecond, 48 End: 287 * time.Millisecond,
52 Restat: time.Unix(0, 0),
53 Out: "gen/angle/copy_compiler_dll.bat", 49 Out: "gen/angle/copy_compiler_dll.bat",
54 CmdHash: "9fb635ad5d2c1109", 50 CmdHash: "9fb635ad5d2c1109",
55 }, 51 },
56 Step{ 52 Step{
57 Start: 141 * time.Millisecond, 53 Start: 141 * time.Millisecond,
58 End: 287 * time.Millisecond, 54 End: 287 * time.Millisecond,
59 Restat: time.Unix(0, 0),
60 Out: "PepperFlash/manifest.json", 55 Out: "PepperFlash/manifest.json",
61 CmdHash: "324f0a0b77c37ef", 56 CmdHash: "324f0a0b77c37ef",
62 }, 57 },
63 Step{ 58 Step{
64 Start: 142 * time.Millisecond, 59 Start: 142 * time.Millisecond,
65 End: 288 * time.Millisecond, 60 End: 288 * time.Millisecond,
66 Restat: time.Unix(0, 0),
67 Out: "PepperFlash/libpepflashplayer.so", 61 Out: "PepperFlash/libpepflashplayer.so",
68 CmdHash: "1e2c2b7845a4d4fe", 62 CmdHash: "1e2c2b7845a4d4fe",
69 }, 63 },
70 Step{ 64 Step{
71 Start: 287 * time.Millisecond, 65 Start: 287 * time.Millisecond,
72 End: 290 * time.Millisecond, 66 End: 290 * time.Millisecond,
73 Restat: time.Unix(0, 0),
74 Out: "obj/third_party/angle/src/copy_scripts.actions _rules_copies.stamp", 67 Out: "obj/third_party/angle/src/copy_scripts.actions _rules_copies.stamp",
75 CmdHash: "b211d373de72f455", 68 CmdHash: "b211d373de72f455",
76 }, 69 },
77 } 70 }
78 71
79 stepsSorted = []Step{ 72 stepsSorted = []Step{
80 Step{ 73 Step{
81 Start: 76 * time.Millisecond, 74 Start: 76 * time.Millisecond,
82 End: 187 * time.Millisecond, 75 End: 187 * time.Millisecond,
83 Restat: time.Unix(0, 0),
84 Out: "resources/inspector/devtools_extension_api.js" , 76 Out: "resources/inspector/devtools_extension_api.js" ,
85 CmdHash: "75430546595be7c2", 77 CmdHash: "75430546595be7c2",
86 }, 78 },
87 Step{ 79 Step{
88 Start: 78 * time.Millisecond, 80 Start: 78 * time.Millisecond,
89 End: 286 * time.Millisecond, 81 End: 286 * time.Millisecond,
90 Restat: time.Unix(0, 0),
91 Out: "gen/angle/commit_id.py", 82 Out: "gen/angle/commit_id.py",
92 CmdHash: "4ede38e2c1617d8c", 83 CmdHash: "4ede38e2c1617d8c",
93 }, 84 },
94 Step{ 85 Step{
95 Start: 79 * time.Millisecond, 86 Start: 79 * time.Millisecond,
96 End: 287 * time.Millisecond, 87 End: 287 * time.Millisecond,
97 Restat: time.Unix(0, 0),
98 Out: "gen/angle/copy_compiler_dll.bat", 88 Out: "gen/angle/copy_compiler_dll.bat",
99 CmdHash: "9fb635ad5d2c1109", 89 CmdHash: "9fb635ad5d2c1109",
100 }, 90 },
101 Step{ 91 Step{
102 Start: 80 * time.Millisecond, 92 Start: 80 * time.Millisecond,
103 End: 284 * time.Millisecond, 93 End: 284 * time.Millisecond,
104 Restat: time.Unix(0, 0),
105 Out: "gen/autofill_regex_constants.cc", 94 Out: "gen/autofill_regex_constants.cc",
106 CmdHash: "fa33c8d7ce1d8791", 95 CmdHash: "fa33c8d7ce1d8791",
107 }, 96 },
108 Step{ 97 Step{
109 Start: 141 * time.Millisecond, 98 Start: 141 * time.Millisecond,
110 End: 287 * time.Millisecond, 99 End: 287 * time.Millisecond,
111 Restat: time.Unix(0, 0),
112 Out: "PepperFlash/manifest.json", 100 Out: "PepperFlash/manifest.json",
113 CmdHash: "324f0a0b77c37ef", 101 CmdHash: "324f0a0b77c37ef",
114 }, 102 },
115 Step{ 103 Step{
116 Start: 142 * time.Millisecond, 104 Start: 142 * time.Millisecond,
117 End: 288 * time.Millisecond, 105 End: 288 * time.Millisecond,
118 Restat: time.Unix(0, 0),
119 Out: "PepperFlash/libpepflashplayer.so", 106 Out: "PepperFlash/libpepflashplayer.so",
120 CmdHash: "1e2c2b7845a4d4fe", 107 CmdHash: "1e2c2b7845a4d4fe",
121 }, 108 },
122 Step{ 109 Step{
123 Start: 287 * time.Millisecond, 110 Start: 287 * time.Millisecond,
124 End: 290 * time.Millisecond, 111 End: 290 * time.Millisecond,
125 Restat: time.Unix(0, 0),
126 Out: "obj/third_party/angle/src/copy_scripts.actions _rules_copies.stamp", 112 Out: "obj/third_party/angle/src/copy_scripts.actions _rules_copies.stamp",
127 CmdHash: "b211d373de72f455", 113 CmdHash: "b211d373de72f455",
128 }, 114 },
129 } 115 }
130 116
131 metadataTestCase = Metadata{ 117 metadataTestCase = Metadata{
132 Platform: "linux", 118 Platform: "linux",
133 Argv: []string{"../../../scripts/slave/compile.py", "--targe t", "Release", "--clobber", "--compiler=goma", "--", "all"}, 119 Argv: []string{"../../../scripts/slave/compile.py", "--targe t", "Release", "--clobber", "--compiler=goma", "--", "all"},
134 Cwd: "/b/build/slave/Linux_x64/build/src", 120 Cwd: "/b/build/slave/Linux_x64/build/src",
135 Compiler: "goma", 121 Compiler: "goma",
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 Step{Out: "2"}, 155 Step{Out: "2"},
170 Step{Out: "1"}, 156 Step{Out: "1"},
171 Step{Out: "0"}, 157 Step{Out: "0"},
172 } 158 }
173 if !reflect.DeepEqual(steps, want) { 159 if !reflect.DeepEqual(steps, want) {
174 t.Errorf("steps.Reverse=%v; want=%v", steps, want) 160 t.Errorf("steps.Reverse=%v; want=%v", steps, want)
175 } 161 }
176 } 162 }
177 163
178 func TestParseBadVersion(t *testing.T) { 164 func TestParseBadVersion(t *testing.T) {
179 » _, err := Parse(strings.NewReader(`# ninja log v4 165 » _, err := Parse(".ninja_log", strings.NewReader(`# ninja log v4
180 0 1 0 foo touch foo 166 0 1 0 foo touch foo
181 `)) 167 `))
182 if err == nil { 168 if err == nil {
183 t.Error("Parse()=_, <nil>; want=_, error") 169 t.Error("Parse()=_, <nil>; want=_, error")
184 } 170 }
185 } 171 }
186 172
187 func TestParseSimple(t *testing.T) { 173 func TestParseSimple(t *testing.T) {
188 » njl, err := Parse(strings.NewReader(logTestCase)) 174 » njl, err := Parse(".ninja_log", strings.NewReader(logTestCase))
189 if err != nil { 175 if err != nil {
190 t.Errorf(`Parse()=_, %v; want=_, <nil>`, err) 176 t.Errorf(`Parse()=_, %v; want=_, <nil>`, err)
191 } 177 }
192 178
193 want := &NinjaLog{ 179 want := &NinjaLog{
194 » » Start: 1, 180 » » Filename: ".ninja_log",
195 » » Steps: stepsTestCase, 181 » » Start: 1,
182 » » Steps: stepsTestCase,
196 } 183 }
197 if !reflect.DeepEqual(njl, want) { 184 if !reflect.DeepEqual(njl, want) {
198 t.Errorf("Parse()=%v; want=%v", njl, want) 185 t.Errorf("Parse()=%v; want=%v", njl, want)
199 } 186 }
200 } 187 }
201 188
202 func TestParseLast(t *testing.T) { 189 func TestParseLast(t *testing.T) {
203 » njl, err := Parse(strings.NewReader(`# ninja log v5 190 » njl, err := Parse(".ninja_log", strings.NewReader(`# ninja log v5
204 1020807 1020916 0 chrome.1 e101fd46be020cfc 191 1020807 1020916 0 chrome.1 e101fd46be020cfc
205 84 9489 0 gen/libraries.cc 9001f3182fa8210e 192 84 9489 0 gen/libraries.cc 9001f3182fa8210e
206 1024369 1041522 0 chrome aee9d497d56c9637 193 1024369 1041522 0 chrome aee9d497d56c9637
207 76 187 0 resources/inspector/devtools_extension_api.js 75430546 595be7c2 194 76 187 0 resources/inspector/devtools_extension_api.js 75430546 595be7c2
208 80 284 0 gen/autofill_regex_constants.cc fa33c8d7ce1d8791 195 80 284 0 gen/autofill_regex_constants.cc fa33c8d7ce1d8791
209 78 286 0 gen/angle/commit_id.py 4ede38e2c1617d8c 196 78 286 0 gen/angle/commit_id.py 4ede38e2c1617d8c
210 79 287 0 gen/angle/copy_compiler_dll.bat 9fb635ad5d2c1109 197 79 287 0 gen/angle/copy_compiler_dll.bat 9fb635ad5d2c1109
211 141 287 0 PepperFlash/manifest.json 324f0a0b77c37ef 198 141 287 0 PepperFlash/manifest.json 324f0a0b77c37ef
212 142 288 0 PepperFlash/libpepflashplayer.so 1e2c2b7845a4d4fe 199 142 288 0 PepperFlash/libpepflashplayer.so 1e2c2b7845a4d4fe
213 287 290 0 obj/third_party/angle/src/copy_scripts.actions_rules_cop ies.stamp b211d373de72f455 200 287 290 0 obj/third_party/angle/src/copy_scripts.actions_rules_cop ies.stamp b211d373de72f455
214 `)) 201 `))
215 if err != nil { 202 if err != nil {
216 t.Errorf(`Parse()=_, %v; want=_, <nil>`, err) 203 t.Errorf(`Parse()=_, %v; want=_, <nil>`, err)
217 } 204 }
218 205
219 want := &NinjaLog{ 206 want := &NinjaLog{
220 » » Start: 4, 207 » » Filename: ".ninja_log",
221 » » Steps: stepsTestCase, 208 » » Start: 4,
209 » » Steps: stepsTestCase,
222 } 210 }
223 if !reflect.DeepEqual(njl, want) { 211 if !reflect.DeepEqual(njl, want) {
224 t.Errorf("Parse()=%v; want=%v", njl, want) 212 t.Errorf("Parse()=%v; want=%v", njl, want)
225 } 213 }
226 } 214 }
227 215
228 func TestParseMetadata(t *testing.T) { 216 func TestParseMetadata(t *testing.T) {
229 » njl, err := Parse(strings.NewReader(`# ninja log v5 217 » njl, err := Parse(".ninja_log", strings.NewReader(`# ninja log v5
230 1020807 1020916 0 chrome.1 e101fd46be020cfc 218 1020807 1020916 0 chrome.1 e101fd46be020cfc
231 84 9489 0 gen/libraries.cc 9001f3182fa8210e 219 84 9489 0 gen/libraries.cc 9001f3182fa8210e
232 1024369 1041522 0 chrome aee9d497d56c9637 220 1024369 1041522 0 chrome aee9d497d56c9637
233 76 187 0 resources/inspector/devtools_extension_api.js 75430546 595be7c2 221 76 187 0 resources/inspector/devtools_extension_api.js 75430546 595be7c2
234 80 284 0 gen/autofill_regex_constants.cc fa33c8d7ce1d8791 222 80 284 0 gen/autofill_regex_constants.cc fa33c8d7ce1d8791
235 78 286 0 gen/angle/commit_id.py 4ede38e2c1617d8c 223 78 286 0 gen/angle/commit_id.py 4ede38e2c1617d8c
236 79 287 0 gen/angle/copy_compiler_dll.bat 9fb635ad5d2c1109 224 79 287 0 gen/angle/copy_compiler_dll.bat 9fb635ad5d2c1109
237 141 287 0 PepperFlash/manifest.json 324f0a0b77c37ef 225 141 287 0 PepperFlash/manifest.json 324f0a0b77c37ef
238 142 288 0 PepperFlash/libpepflashplayer.so 1e2c2b7845a4d4fe 226 142 288 0 PepperFlash/libpepflashplayer.so 1e2c2b7845a4d4fe
239 287 290 0 obj/third_party/angle/src/copy_scripts.actions_rules_cop ies.stamp b211d373de72f455 227 287 290 0 obj/third_party/angle/src/copy_scripts.actions_rules_cop ies.stamp b211d373de72f455
240 # end of ninja log 228 # end of ninja log
241 {"platform": "linux", "argv": ["../../../scripts/slave/compile.py", "--target", "Release", "--clobber", "--compiler=goma", "--", "all"], "cmdline": ["ninja", "- C", "/b/build/slave/Linux_x64/build/src/out/Release", "all", "-j50"], "exit": 0, "env": {"LANG": "en_US.UTF-8", "SHELL": "/bin/bash", "HOME": "/home/chrome-bot" , "PWD": "/b/build/slave/Linux_x64/build", "LOGNAME": "chrome-bot", "USER": "chr ome-bot", "PATH": "/home/chrome-bot/slavebin:/b/depot_tools:/usr/bin:/usr/bin:/b in:/usr/sbin:/sbin:/usr/local/bin" }, "compiler_proxy_info": "/tmp/compiler_prox y.build48-m1.chrome-bot.log.INFO.20140907-203827.14676", "cwd": "/b/build/slave/ Linux_x64/build/src", "compiler": "goma"} 229 {"platform": "linux", "argv": ["../../../scripts/slave/compile.py", "--target", "Release", "--clobber", "--compiler=goma", "--", "all"], "cmdline": ["ninja", "- C", "/b/build/slave/Linux_x64/build/src/out/Release", "all", "-j50"], "exit": 0, "env": {"LANG": "en_US.UTF-8", "SHELL": "/bin/bash", "HOME": "/home/chrome-bot" , "PWD": "/b/build/slave/Linux_x64/build", "LOGNAME": "chrome-bot", "USER": "chr ome-bot", "PATH": "/home/chrome-bot/slavebin:/b/depot_tools:/usr/bin:/usr/bin:/b in:/usr/sbin:/sbin:/usr/local/bin" }, "compiler_proxy_info": "/tmp/compiler_prox y.build48-m1.chrome-bot.log.INFO.20140907-203827.14676", "cwd": "/b/build/slave/ Linux_x64/build/src", "compiler": "goma"}
242 `)) 230 `))
243 if err != nil { 231 if err != nil {
244 t.Errorf(`Parse()=_, %v; want=_, <nil>`, err) 232 t.Errorf(`Parse()=_, %v; want=_, <nil>`, err)
245 } 233 }
246 234
247 want := &NinjaLog{ 235 want := &NinjaLog{
236 Filename: ".ninja_log",
248 Start: 4, 237 Start: 4,
249 Steps: stepsTestCase, 238 Steps: stepsTestCase,
250 Metadata: metadataTestCase, 239 Metadata: metadataTestCase,
251 } 240 }
252 if !reflect.DeepEqual(njl, want) { 241 if !reflect.DeepEqual(njl, want) {
253 t.Errorf("Parse()=%v; want=%v", njl, want) 242 t.Errorf("Parse()=%v; want=%v", njl, want)
254 } 243 }
255 } 244 }
256 245
257 func TestDump(t *testing.T) { 246 func TestDump(t *testing.T) {
(...skipping 11 matching lines...) Expand all
269 steps := append([]Step{}, stepsTestCase...) 258 steps := append([]Step{}, stepsTestCase...)
270 for _, out := range []string{ 259 for _, out := range []string{
271 "gen/ui/keyboard/webui/keyboard.mojom.cc", 260 "gen/ui/keyboard/webui/keyboard.mojom.cc",
272 "gen/ui/keyboard/webui/keyboard.mojom.h", 261 "gen/ui/keyboard/webui/keyboard.mojom.h",
273 "gen/ui/keyboard/webui/keyboard.mojom.js", 262 "gen/ui/keyboard/webui/keyboard.mojom.js",
274 "gen/ui/keyboard/webui/keyboard.mojom-internal.h", 263 "gen/ui/keyboard/webui/keyboard.mojom-internal.h",
275 } { 264 } {
276 steps = append(steps, Step{ 265 steps = append(steps, Step{
277 Start: 302 * time.Millisecond, 266 Start: 302 * time.Millisecond,
278 End: 5764 * time.Millisecond, 267 End: 5764 * time.Millisecond,
279 Restat: time.Unix(0, 0),
280 Out: out, 268 Out: out,
281 CmdHash: "a551cc46f8c21e5a", 269 CmdHash: "a551cc46f8c21e5a",
282 }) 270 })
283 } 271 }
284 got := Dedup(steps) 272 got := Dedup(steps)
285 want := append([]Step{}, stepsSorted...) 273 want := append([]Step{}, stepsSorted...)
286 want = append(want, Step{ 274 want = append(want, Step{
287 Start: 302 * time.Millisecond, 275 Start: 302 * time.Millisecond,
288 End: 5764 * time.Millisecond, 276 End: 5764 * time.Millisecond,
289 Restat: time.Unix(0, 0),
290 Out: "gen/ui/keyboard/webui/keyboard.mojom-internal.h", 277 Out: "gen/ui/keyboard/webui/keyboard.mojom-internal.h",
291 CmdHash: "a551cc46f8c21e5a", 278 CmdHash: "a551cc46f8c21e5a",
292 }) 279 })
293 if !reflect.DeepEqual(got, want) { 280 if !reflect.DeepEqual(got, want) {
294 t.Errorf("Dedup=%v; want=%v", got, want) 281 t.Errorf("Dedup=%v; want=%v", got, want)
295 } 282 }
296 } 283 }
297 284
298 func TestFlow(t *testing.T) { 285 func TestFlow(t *testing.T) {
299 steps := append([]Step{}, stepsTestCase...) 286 steps := append([]Step{}, stepsTestCase...)
300 steps = append(steps, Step{ 287 steps = append(steps, Step{
301 Start: 187 * time.Millisecond, 288 Start: 187 * time.Millisecond,
302 End: 21304 * time.Millisecond, 289 End: 21304 * time.Millisecond,
303 Restat: time.Unix(0, 0),
304 Out: "obj/third_party/pdfium/core/src/fpdfdoc/fpdfdoc.doc_fo rmfield.o", 290 Out: "obj/third_party/pdfium/core/src/fpdfdoc/fpdfdoc.doc_fo rmfield.o",
305 CmdHash: "2ac7111aa1ae86af", 291 CmdHash: "2ac7111aa1ae86af",
306 }) 292 })
307 293
308 flow := Flow(steps) 294 flow := Flow(steps)
309 295
310 want := [][]Step{ 296 want := [][]Step{
311 []Step{ 297 []Step{
312 Step{ 298 Step{
313 Start: 76 * time.Millisecond, 299 Start: 76 * time.Millisecond,
314 End: 187 * time.Millisecond, 300 End: 187 * time.Millisecond,
315 Restat: time.Unix(0, 0),
316 Out: "resources/inspector/devtools_extension _api.js", 301 Out: "resources/inspector/devtools_extension _api.js",
317 CmdHash: "75430546595be7c2", 302 CmdHash: "75430546595be7c2",
318 }, 303 },
319 Step{ 304 Step{
320 Start: 187 * time.Millisecond, 305 Start: 187 * time.Millisecond,
321 End: 21304 * time.Millisecond, 306 End: 21304 * time.Millisecond,
322 Restat: time.Unix(0, 0),
323 Out: "obj/third_party/pdfium/core/src/fpdfdo c/fpdfdoc.doc_formfield.o", 307 Out: "obj/third_party/pdfium/core/src/fpdfdo c/fpdfdoc.doc_formfield.o",
324 CmdHash: "2ac7111aa1ae86af", 308 CmdHash: "2ac7111aa1ae86af",
325 }, 309 },
326 }, 310 },
327 []Step{ 311 []Step{
328 Step{ 312 Step{
329 Start: 78 * time.Millisecond, 313 Start: 78 * time.Millisecond,
330 End: 286 * time.Millisecond, 314 End: 286 * time.Millisecond,
331 Restat: time.Unix(0, 0),
332 Out: "gen/angle/commit_id.py", 315 Out: "gen/angle/commit_id.py",
333 CmdHash: "4ede38e2c1617d8c", 316 CmdHash: "4ede38e2c1617d8c",
334 }, 317 },
335 Step{ 318 Step{
336 Start: 287 * time.Millisecond, 319 Start: 287 * time.Millisecond,
337 End: 290 * time.Millisecond, 320 End: 290 * time.Millisecond,
338 Restat: time.Unix(0, 0),
339 Out: "obj/third_party/angle/src/copy_scripts .actions_rules_copies.stamp", 321 Out: "obj/third_party/angle/src/copy_scripts .actions_rules_copies.stamp",
340 CmdHash: "b211d373de72f455", 322 CmdHash: "b211d373de72f455",
341 }, 323 },
342 }, 324 },
343 []Step{ 325 []Step{
344 Step{ 326 Step{
345 Start: 79 * time.Millisecond, 327 Start: 79 * time.Millisecond,
346 End: 287 * time.Millisecond, 328 End: 287 * time.Millisecond,
347 Restat: time.Unix(0, 0),
348 Out: "gen/angle/copy_compiler_dll.bat", 329 Out: "gen/angle/copy_compiler_dll.bat",
349 CmdHash: "9fb635ad5d2c1109", 330 CmdHash: "9fb635ad5d2c1109",
350 }, 331 },
351 }, 332 },
352 []Step{ 333 []Step{
353 Step{ 334 Step{
354 Start: 80 * time.Millisecond, 335 Start: 80 * time.Millisecond,
355 End: 284 * time.Millisecond, 336 End: 284 * time.Millisecond,
356 Restat: time.Unix(0, 0),
357 Out: "gen/autofill_regex_constants.cc", 337 Out: "gen/autofill_regex_constants.cc",
358 CmdHash: "fa33c8d7ce1d8791", 338 CmdHash: "fa33c8d7ce1d8791",
359 }, 339 },
360 }, 340 },
361 []Step{ 341 []Step{
362 Step{ 342 Step{
363 Start: 141 * time.Millisecond, 343 Start: 141 * time.Millisecond,
364 End: 287 * time.Millisecond, 344 End: 287 * time.Millisecond,
365 Restat: time.Unix(0, 0),
366 Out: "PepperFlash/manifest.json", 345 Out: "PepperFlash/manifest.json",
367 CmdHash: "324f0a0b77c37ef", 346 CmdHash: "324f0a0b77c37ef",
368 }, 347 },
369 }, 348 },
370 []Step{ 349 []Step{
371 Step{ 350 Step{
372 Start: 142 * time.Millisecond, 351 Start: 142 * time.Millisecond,
373 End: 288 * time.Millisecond, 352 End: 288 * time.Millisecond,
374 Restat: time.Unix(0, 0),
375 Out: "PepperFlash/libpepflashplayer.so", 353 Out: "PepperFlash/libpepflashplayer.so",
376 CmdHash: "1e2c2b7845a4d4fe", 354 CmdHash: "1e2c2b7845a4d4fe",
377 }, 355 },
378 }, 356 },
379 } 357 }
380 358
381 if !reflect.DeepEqual(flow, want) { 359 if !reflect.DeepEqual(flow, want) {
382 t.Errorf("Flow()=%v; want=%v", flow, want) 360 t.Errorf("Flow()=%v; want=%v", flow, want)
383 } 361 }
384 } 362 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698