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

Side by Side Diff: chrome/common/extensions/extension_unittest.cc

Issue 10697017: Tabs Extension: Implementation of tabs.duplicate api. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/extension.h" 5 #include "chrome/common/extensions/extension.h"
6 6
7 #include "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/json/json_file_value_serializer.h" 10 #include "base/json/json_file_value_serializer.h"
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 // Some negative tests. 543 // Some negative tests.
544 { "bookmarks", false }, 544 { "bookmarks", false },
545 { "cookies", false }, 545 { "cookies", false },
546 { "history", false }, 546 { "history", false },
547 { "tabs.onUpdated", false }, 547 { "tabs.onUpdated", false },
548 // Make sure we find the module name after stripping '.' and '/'. 548 // Make sure we find the module name after stripping '.' and '/'.
549 { "browserAction/abcd/onClick", true }, 549 { "browserAction/abcd/onClick", true },
550 { "browserAction.abcd.onClick", true }, 550 { "browserAction.abcd.onClick", true },
551 // Test Tabs functions. 551 // Test Tabs functions.
552 { "tabs.create", true}, 552 { "tabs.create", true},
553 { "tabs.duplicate", true},
553 { "tabs.onRemoved", true}, 554 { "tabs.onRemoved", true},
554 { "tabs.remove", true}, 555 { "tabs.remove", true},
555 { "tabs.update", true}, 556 { "tabs.update", true},
556 { "tabs.getSelected", false}, 557 { "tabs.getSelected", false},
557 // Test getPermissionWarnings functions. Only one requires permissions. 558 // Test getPermissionWarnings functions. Only one requires permissions.
558 { "management.getPermissionWarningsById", false }, 559 { "management.getPermissionWarningsById", false },
559 { "management.getPermissionWarningsByManifest", true }, 560 { "management.getPermissionWarningsByManifest", true },
560 }; 561 };
561 562
562 scoped_refptr<Extension> extension; 563 scoped_refptr<Extension> extension;
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 } 1080 }
1080 1081
1081 TEST(ExtensionTest, GetSyncTypeExtensionWithTwoPlugins) { 1082 TEST(ExtensionTest, GetSyncTypeExtensionWithTwoPlugins) {
1082 scoped_refptr<Extension> extension( 1083 scoped_refptr<Extension> extension(
1083 MakeSyncTestExtension(EXTENSION, GURL(), GURL(), 1084 MakeSyncTestExtension(EXTENSION, GURL(), GURL(),
1084 Extension::INTERNAL, 2, FilePath())); 1085 Extension::INTERNAL, 2, FilePath()));
1085 if (extension) 1086 if (extension)
1086 EXPECT_EQ(extension->GetSyncType(), Extension::SYNC_TYPE_NONE); 1087 EXPECT_EQ(extension->GetSyncType(), Extension::SYNC_TYPE_NONE);
1087 } 1088 }
1088 #endif // !defined(OS_CHROMEOS) 1089 #endif // !defined(OS_CHROMEOS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698