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

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, 3 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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 { "test", true }, 595 { "test", true },
596 // Some negative tests. 596 // Some negative tests.
597 { "bookmarks", false }, 597 { "bookmarks", false },
598 { "cookies", false }, 598 { "cookies", false },
599 { "history", false }, 599 { "history", false },
600 // Make sure we find the module name after stripping '.' and '/'. 600 // Make sure we find the module name after stripping '.' and '/'.
601 { "browserAction/abcd/onClick", true }, 601 { "browserAction/abcd/onClick", true },
602 { "browserAction.abcd.onClick", true }, 602 { "browserAction.abcd.onClick", true },
603 // Test Tabs functions. 603 // Test Tabs functions.
604 { "tabs.create", true}, 604 { "tabs.create", true},
605 { "tabs.duplicate", true},
605 { "tabs.onRemoved", true}, 606 { "tabs.onRemoved", true},
606 { "tabs.remove", true}, 607 { "tabs.remove", true},
607 { "tabs.update", true}, 608 { "tabs.update", true},
608 { "tabs.getSelected", true}, 609 { "tabs.getSelected", true},
609 { "tabs.onUpdated", true }, 610 { "tabs.onUpdated", true },
610 // Test getPermissionWarnings functions. Only one requires permissions. 611 // Test getPermissionWarnings functions. Only one requires permissions.
611 { "management.getPermissionWarningsById", false }, 612 { "management.getPermissionWarningsById", false },
612 { "management.getPermissionWarningsByManifest", true }, 613 { "management.getPermissionWarningsByManifest", true },
613 }; 614 };
614 615
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 1208
1208 TEST(ExtensionTest, GetSyncTypeExtensionWithTwoPlugins) { 1209 TEST(ExtensionTest, GetSyncTypeExtensionWithTwoPlugins) {
1209 scoped_refptr<Extension> extension( 1210 scoped_refptr<Extension> extension(
1210 MakeSyncTestExtension(EXTENSION, GURL(), GURL(), 1211 MakeSyncTestExtension(EXTENSION, GURL(), GURL(),
1211 Extension::INTERNAL, 2, FilePath(), 1212 Extension::INTERNAL, 2, FilePath(),
1212 Extension::NO_FLAGS)); 1213 Extension::NO_FLAGS));
1213 if (extension) 1214 if (extension)
1214 EXPECT_EQ(extension->GetSyncType(), Extension::SYNC_TYPE_NONE); 1215 EXPECT_EQ(extension->GetSyncType(), Extension::SYNC_TYPE_NONE);
1215 } 1216 }
1216 #endif // !defined(OS_CHROMEOS) 1217 #endif // !defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/tabs.json ('k') | chrome/common/extensions/permissions/permission_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698