Fold TextRenderer::Stop() into the dtor.
[chromium-blink-merge.git] / extensions / test / test_permission_message_provider.h
blobc0cc71df54f898861e7d1920251fb32fe83363ce
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_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_
6 #define EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_
8 #include "base/macros.h"
9 #include "extensions/common/permissions/permission_message_provider.h"
11 namespace extensions {
13 class TestPermissionMessageProvider : public PermissionMessageProvider {
14 public:
15 TestPermissionMessageProvider();
16 virtual ~TestPermissionMessageProvider();
18 private:
19 virtual PermissionMessages GetPermissionMessages(
20 const PermissionSet* permissions,
21 Manifest::Type extension_type) const OVERRIDE;
22 virtual std::vector<base::string16> GetWarningMessages(
23 const PermissionSet* permissions,
24 Manifest::Type extension_type) const OVERRIDE;
25 virtual std::vector<base::string16> GetWarningMessagesDetails(
26 const PermissionSet* permissions,
27 Manifest::Type extension_type) const OVERRIDE;
28 virtual bool IsPrivilegeIncrease(
29 const PermissionSet* old_permissions,
30 const PermissionSet* new_permissions,
31 Manifest::Type extension_type) const OVERRIDE;
33 DISALLOW_COPY_AND_ASSIGN(TestPermissionMessageProvider);
36 } // namespace extensions
38 #endif // EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_