Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: chrome/common/extensions/manifest_handlers/automation_unittest.cc

Issue 1269773002: Cleanup VersionInfo after componentization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698