Extract SIGPIPE ignoring code to a common place.
[chromium-blink-merge.git] / chrome / common / extensions / extension_test_util.h
bloba549d98762017113075d5d0cb2f1077073a517bb
1 // Copyright (c) 2012 The Chromium 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.
5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_TEST_UTIL_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_TEST_UTIL_H_
8 #include <string>
10 #include "base/memory/ref_counted.h"
12 namespace extensions {
13 class Extension;
16 namespace extension_test_util {
18 // Makes a fake extension id using the given |seed|.
19 std::string MakeId(std::string seed);
21 // Return a very simple extension with id |id|.
22 scoped_refptr<extensions::Extension> CreateExtensionWithID(std::string id);
24 } // namespace extension_test_util
26 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_TEST_UTIL_H_