diff options
Diffstat (limited to 'extensions/common/test_util.h')
-rw-r--r-- | extensions/common/test_util.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/extensions/common/test_util.h b/extensions/common/test_util.h new file mode 100644 index 0000000..e38b28f --- /dev/null +++ b/extensions/common/test_util.h @@ -0,0 +1,27 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef EXTENSIONS_COMMON_TEST_UTIL_H_ +#define EXTENSIONS_COMMON_TEST_UTIL_H_ + +#include <string> + +#include "base/memory/ref_counted.h" + +namespace extensions { +class Extension; +class ExtensionBuilder; + +namespace test_util { + +// Adds an extension manifest to a builder. +ExtensionBuilder& BuildExtension(ExtensionBuilder& builder); + +// Return a very simple extension with a given |id|. +scoped_refptr<Extension> CreateExtensionWithID(const std::string& id); + +} // namespace test_util +} // namespace extensions + +#endif // EXTENSIONS_COMMON_TEST_UTIL_H_ |