| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/strings/utf_string_conversions.h" | 5 #include "base/strings/utf_string_conversions.h" |
| 6 #include "chrome/common/extensions/manifest_handlers/automation.h" | 6 #include "chrome/common/extensions/manifest_handlers/automation.h" |
| 7 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" | 7 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" |
| 8 #include "chrome/grit/generated_resources.h" | 8 #include "chrome/grit/generated_resources.h" |
| 9 #include "extensions/common/error_utils.h" | 9 #include "extensions/common/error_utils.h" |
| 10 #include "extensions/common/manifest_constants.h" | 10 #include "extensions/common/manifest_constants.h" |
| 11 #include "extensions/common/permissions/permissions_data.h" | 11 #include "extensions/common/permissions/permissions_data.h" |
| 12 #include "extensions/strings/grit/extensions_strings.h" | |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
| 15 | 14 |
| 16 namespace extensions { | 15 namespace extensions { |
| 17 | 16 |
| 18 class AutomationManifestTest : public ExtensionManifestTest { | 17 class AutomationManifestTest : public ExtensionManifestTest { |
| 19 public: | 18 public: |
| 20 AutomationManifestTest() : channel_(chrome::VersionInfo::CHANNEL_UNKNOWN) {} | 19 AutomationManifestTest() : channel_(chrome::VersionInfo::CHANNEL_UNKNOWN) {} |
| 21 | 20 |
| 22 protected: | 21 protected: |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 271 |
| 273 const AutomationInfo* info = AutomationInfo::Get(extension.get()); | 272 const AutomationInfo* info = AutomationInfo::Get(extension.get()); |
| 274 ASSERT_TRUE(info); | 273 ASSERT_TRUE(info); |
| 275 | 274 |
| 276 EXPECT_TRUE(info->desktop); | 275 EXPECT_TRUE(info->desktop); |
| 277 EXPECT_TRUE(info->interact); | 276 EXPECT_TRUE(info->interact); |
| 278 EXPECT_TRUE(info->matches.is_empty()); | 277 EXPECT_TRUE(info->matches.is_empty()); |
| 279 } | 278 } |
| 280 | 279 |
| 281 } // namespace extensions | 280 } // namespace extensions |
| OLD | NEW |