Update V8 to version 4.4.61.
[chromium-blink-merge.git] / extensions / browser / extension_error_test_util.h
blob6ea2da65d449476a9cd18cbb05a13fa5fd16a1a9
1 // Copyright 2014 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 EXTENSIONS_BROWSER_EXTENSION_ERROR_TEST_UTIL_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_ERROR_TEST_UTIL_H_
8 #include <string>
10 #include "base/memory/scoped_ptr.h"
12 namespace extensions {
14 class ExtensionError;
16 namespace error_test_util {
18 // Create a new RuntimeError.
19 scoped_ptr<ExtensionError> CreateNewRuntimeError(
20 const std::string& extension_id,
21 const std::string& message,
22 bool from_incognito);
24 // Create a new RuntimeError; incognito defaults to "false".
25 scoped_ptr<ExtensionError> CreateNewRuntimeError(
26 const std::string& extension_id, const std::string& message);
28 // Create a new ManifestError.
29 scoped_ptr<ExtensionError> CreateNewManifestError(
30 const std::string& extension_id,
31 const std::string& message);
33 } // namespace error_test_util
34 } // namespace extensions
36 #endif // EXTENSIONS_BROWSER_EXTENSION_ERROR_TEST_UTIL_H_