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

Side by Side Diff: chrome/common/extensions/api/extension_api_unittest.cc

Issue 23867002: Move dns API to dev channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding missing dns.idl file Created 7 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
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/api/extension_api.h" 5 #include "chrome/common/extensions/api/extension_api.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 TEST(ExtensionAPITest, LazyGetSchema) { 327 TEST(ExtensionAPITest, LazyGetSchema) {
328 scoped_ptr<ExtensionAPI> apis(ExtensionAPI::CreateWithDefaultConfiguration()); 328 scoped_ptr<ExtensionAPI> apis(ExtensionAPI::CreateWithDefaultConfiguration());
329 329
330 EXPECT_EQ(NULL, apis->GetSchema(std::string())); 330 EXPECT_EQ(NULL, apis->GetSchema(std::string()));
331 EXPECT_EQ(NULL, apis->GetSchema(std::string())); 331 EXPECT_EQ(NULL, apis->GetSchema(std::string()));
332 EXPECT_EQ(NULL, apis->GetSchema("experimental")); 332 EXPECT_EQ(NULL, apis->GetSchema("experimental"));
333 EXPECT_EQ(NULL, apis->GetSchema("experimental")); 333 EXPECT_EQ(NULL, apis->GetSchema("experimental"));
334 EXPECT_EQ(NULL, apis->GetSchema("foo")); 334 EXPECT_EQ(NULL, apis->GetSchema("foo"));
335 EXPECT_EQ(NULL, apis->GetSchema("foo")); 335 EXPECT_EQ(NULL, apis->GetSchema("foo"));
336 336
337 EXPECT_TRUE(apis->GetSchema("experimental.dns")); 337 EXPECT_TRUE(apis->GetSchema("dns"));
338 EXPECT_TRUE(apis->GetSchema("experimental.dns")); 338 EXPECT_TRUE(apis->GetSchema("dns"));
339 EXPECT_TRUE(apis->GetSchema("extension")); 339 EXPECT_TRUE(apis->GetSchema("extension"));
340 EXPECT_TRUE(apis->GetSchema("extension")); 340 EXPECT_TRUE(apis->GetSchema("extension"));
341 EXPECT_TRUE(apis->GetSchema("infobars")); 341 EXPECT_TRUE(apis->GetSchema("infobars"));
342 EXPECT_TRUE(apis->GetSchema("infobars")); 342 EXPECT_TRUE(apis->GetSchema("infobars"));
343 EXPECT_TRUE(apis->GetSchema("omnibox")); 343 EXPECT_TRUE(apis->GetSchema("omnibox"));
344 EXPECT_TRUE(apis->GetSchema("omnibox")); 344 EXPECT_TRUE(apis->GetSchema("omnibox"));
345 EXPECT_TRUE(apis->GetSchema("storage")); 345 EXPECT_TRUE(apis->GetSchema("storage"));
346 EXPECT_TRUE(apis->GetSchema("storage")); 346 EXPECT_TRUE(apis->GetSchema("storage"));
347 } 347 }
348 348
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 extension.get(), 903 extension.get(),
904 Feature::BLESSED_EXTENSION_CONTEXT, 904 Feature::BLESSED_EXTENSION_CONTEXT,
905 GURL()).is_available()); 905 GURL()).is_available());
906 EXPECT_FALSE(extension_api->IsAvailable("pageAction", 906 EXPECT_FALSE(extension_api->IsAvailable("pageAction",
907 extension.get(), 907 extension.get(),
908 Feature::BLESSED_EXTENSION_CONTEXT, 908 Feature::BLESSED_EXTENSION_CONTEXT,
909 GURL()).is_available()); 909 GURL()).is_available());
910 } 910 }
911 911
912 } // namespace extensions 912 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/experimental_dns.idl ('k') | chrome/common/extensions/permissions/api_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698