| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // public_key_hashes_check.go runs tests on public_key_hashes.h. It's not run | 5 // public_key_hashes_check.go runs tests on public_key_hashes.h. It's not run |
| 6 // automatically, but rather as part of the process of manually updating | 6 // automatically, but rather as part of the process of manually updating |
| 7 // public_key_hashes.h | 7 // public_key_hashes.h |
| 8 // | 8 // |
| 9 // It verifies that each hash in the file is correct given the preceeding | 9 // It verifies that each hash in the file is correct given the preceeding |
| 10 // certificate and that the name of the variable matches the name given in the | 10 // certificate and that the name of the variable matches the name given in the |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 state = POSTDECL | 226 state = POSTDECL |
| 227 case POSTDECL: | 227 case POSTDECL: |
| 228 fmt.Fprintf(os.Stderr, "Found declation at line
%d, but missed the hash value of the previous one\n", lineNo) | 228 fmt.Fprintf(os.Stderr, "Found declation at line
%d, but missed the hash value of the previous one\n", lineNo) |
| 229 return | 229 return |
| 230 default: | 230 default: |
| 231 panic("bad state") | 231 panic("bad state") |
| 232 } | 232 } |
| 233 } | 233 } |
| 234 } | 234 } |
| 235 } | 235 } |
| OLD | NEW |