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

Unified Diff: chrome/common/extensions/api/common_extension_api_unittest.cc

Issue 2491773003: [MD Bookmarks] Make the bookmarks extensions API available to MD Bookmarks. (Closed)
Patch Set: fix test Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/_api_features.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/common_extension_api_unittest.cc
diff --git a/chrome/common/extensions/api/common_extension_api_unittest.cc b/chrome/common/extensions/api/common_extension_api_unittest.cc
index 9ee5f56ee40aa04468cc6811e4a75edcad594458..0c07445e941edf3ba6f3fa1931910c22561cecae 100644
--- a/chrome/common/extensions/api/common_extension_api_unittest.cc
+++ b/chrome/common/extensions/api/common_extension_api_unittest.cc
@@ -681,18 +681,15 @@ TEST(ExtensionAPITest, DefaultConfigurationFeatures) {
std::unique_ptr<ExtensionAPI> api(
ExtensionAPI::CreateWithDefaultConfiguration());
- SimpleFeature* bookmarks = static_cast<SimpleFeature*>(
- api->GetFeatureDependency("api:bookmarks"));
- SimpleFeature* bookmarks_create = static_cast<SimpleFeature*>(
- api->GetFeatureDependency("api:bookmarks.create"));
+ SimpleFeature* browser_action = static_cast<SimpleFeature*>(
+ api->GetFeatureDependency("api:browserAction"));
+ SimpleFeature* browser_action_set_title = static_cast<SimpleFeature*>(
+ api->GetFeatureDependency("api:browserAction.setTitle"));
struct {
SimpleFeature* feature;
// TODO(aa): More stuff to test over time.
- } test_data[] = {
- { bookmarks },
- { bookmarks_create }
- };
+ } test_data[] = {{browser_action}, {browser_action_set_title}};
for (size_t i = 0; i < arraysize(test_data); ++i) {
SimpleFeature* feature = test_data[i].feature;
« no previous file with comments | « chrome/common/extensions/api/_api_features.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698