blob: 93fb32d391bc0b32f4cc0f86f81bc002afc2260d [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package symbolize
type mockSource struct{}
func newMockSource() Source {
return &mockSource{}
}
func (m *mockSource) GetBinaries() ([]Binary, error) {
out := []Binary{
Binary{Name: "testdata/gobug.elf", BuildID: "5bf6a28a259b95b4f20ffbcea0cbb149"},
Binary{Name: "testdata/libc.elf", BuildID: "4fcb712aa6387724a9f465a32cd8c14b"},
Binary{Name: "testdata/libcrypto.elf", BuildID: "12ef5c50b3ed3599c07c02d4509311be"},
}
for _, bin := range out {
if err := VerifyBinary(bin.Name, bin.BuildID); err != nil {
return nil, err
}
}
return out, nil
}