1 // Copyright 2016 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROMIUMOS_WIDE_PROFILING_DSO_TEST_UTILS_H_
6 #define CHROMIUMOS_WIDE_PROFILING_DSO_TEST_UTILS_H_
7 
8 #include <utility>
9 #include <vector>
10 
11 #include "compat/string.h"
12 
13 namespace quipper {
14 namespace testing {
15 
16 void WriteElfWithBuildid(string filename, string section_name, string buildid);
17 // Note: an ELF with multiple buildid notes is unusual, but useful for testing.
18 void WriteElfWithMultipleBuildids(
19     string filename,
20     const std::vector<std::pair<string, string>> section_buildids);
21 
22 }  // namespace testing
23 }  // namespace quipper
24 
25 #endif  // CHROMIUMOS_WIDE_PROFILING_DSO_TEST_UTILS_H_
26