| 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 "chrome/common/extensions/features/feature_channel.h" | 5 #include "chrome/common/extensions/features/feature_channel.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/chrome_manifest_test.h" | 7 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" |
| 8 #include "chrome/grit/generated_resources.h" | 8 #include "chrome/grit/generated_resources.h" |
| 9 #include "components/version_info/version_info.h" |
| 9 #include "extensions/common/error_utils.h" | 10 #include "extensions/common/error_utils.h" |
| 10 #include "extensions/common/manifest_constants.h" | 11 #include "extensions/common/manifest_constants.h" |
| 11 #include "extensions/common/permissions/permission_message_test_util.h" | 12 #include "extensions/common/permissions/permission_message_test_util.h" |
| 12 #include "extensions/common/permissions/permissions_data.h" | 13 #include "extensions/common/permissions/permissions_data.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 15 | 16 |
| 16 namespace extensions { | 17 namespace extensions { |
| 17 | 18 |
| 18 class AutomationManifestTest : public ChromeManifestTest { | 19 class AutomationManifestTest : public ChromeManifestTest { |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 | 285 |
| 285 const AutomationInfo* info = AutomationInfo::Get(extension.get()); | 286 const AutomationInfo* info = AutomationInfo::Get(extension.get()); |
| 286 ASSERT_TRUE(info); | 287 ASSERT_TRUE(info); |
| 287 | 288 |
| 288 EXPECT_FALSE(info->desktop); | 289 EXPECT_FALSE(info->desktop); |
| 289 EXPECT_TRUE(info->interact); | 290 EXPECT_TRUE(info->interact); |
| 290 EXPECT_FALSE(info->matches.is_empty()); | 291 EXPECT_FALSE(info->matches.is_empty()); |
| 291 EXPECT_TRUE(info->matches.MatchesAllURLs()); | 292 EXPECT_TRUE(info->matches.MatchesAllURLs()); |
| 292 } | 293 } |
| 293 } // namespace extensions | 294 } // namespace extensions |
| OLD | NEW |