Lines Matching defs:loaded_
610 loaded_.push_back(make_scoped_refptr(extension));
613 std::stable_sort(loaded_.begin(), loaded_.end(), ExtensionsOrder());
623 std::find(loaded_.begin(), loaded_.end(), e);
625 // are manually calling clear() on loaded_, so this isn't doable.
626 if (i == loaded_.end())
628 loaded_.erase(i);
826 EXPECT_EQ(0u, loaded_.size()) << path.value();
828 EXPECT_EQ(1u, loaded_.size()) << path.value();
831 extension = loaded_[0].get();
842 EXPECT_EQ(0u, loaded_.size()) << path.value();
849 loaded_.clear();
1153 extensions::ExtensionList loaded_;
1228 ASSERT_EQ(expected_num_extensions, loaded_.size());
1230 EXPECT_EQ(std::string(good0), loaded_[0]->id());
1232 loaded_[0]->name());
1234 loaded_[0]->description());
1235 EXPECT_EQ(Manifest::INTERNAL, loaded_[0]->location());
1236 EXPECT_TRUE(service_->GetExtensionById(loaded_[0]->id(), false));
1251 const Extension* extension = loaded_[0].get();
1287 EXPECT_EQ(std::string(good1), loaded_[1]->id());
1288 EXPECT_EQ(std::string("My extension 2"), loaded_[1]->name());
1289 EXPECT_EQ(std::string(), loaded_[1]->description());
1290 EXPECT_EQ(loaded_[1]->GetResourceURL("background.html"),
1291 extensions::BackgroundInfo::GetBackgroundURL(loaded_[1].get()));
1293 extensions::ContentScriptsInfo::GetContentScripts(loaded_[1].get())
1298 EXPECT_TRUE(!extensions::PluginInfo::HasPlugins(loaded_[1].get()));
1300 loaded_[1].get()));
1302 extensions::PluginInfo::GetPlugins(loaded_[1].get());
1305 EXPECT_EQ(loaded_[1]->path().AppendASCII("content_plugin.dll").value(),
1308 EXPECT_EQ(loaded_[1]->path().AppendASCII("extension_plugin.dll").value(),
1313 EXPECT_EQ(Manifest::INTERNAL, loaded_[1]->location());
1316 EXPECT_EQ(std::string(good2), loaded_[index]->id());
1317 EXPECT_EQ(std::string("My extension 3"), loaded_[index]->name());
1318 EXPECT_EQ(std::string(), loaded_[index]->description());
1321 loaded_[index].get()).size());
1322 EXPECT_EQ(Manifest::INTERNAL, loaded_[index]->location());
1340 ASSERT_EQ(0u, loaded_.size());
1881 ASSERT_EQ(1u, loaded_.size()) << "Nothing was loaded.";
1884 EXPECT_TRUE(service_->GetExtensionById(loaded_[0]->id(), false)) <<
1889 loaded_.clear();
1907 ASSERT_EQ(0u, loaded_.size()) << "Extension loaded during shutdown.";
2396 ASSERT_EQ(1u, loaded_.size());
2438 ASSERT_EQ(1u, loaded_.size());
2443 loaded_.clear();
2449 ASSERT_EQ(1u, loaded_.size());
2483 ASSERT_EQ(1u, loaded_.size());
2827 ASSERT_EQ(0u, loaded_.size());
2931 ASSERT_EQ(1u, loaded_.size());
2932 EXPECT_EQ(Manifest::UNPACKED, loaded_[0]->location());
2934 EXPECT_EQ("2.0", loaded_[0]->VersionString());
2945 ASSERT_EQ(1u, loaded_.size());
2946 EXPECT_EQ(Manifest::UNPACKED, loaded_[0]->location());
2948 EXPECT_EQ("1.0", loaded_[0]->VersionString());
2980 EXPECT_EQ(0u, loaded_.size());
2990 EXPECT_EQ(1u, loaded_.size());
3005 EXPECT_EQ(2u, loaded_.size());
3020 loaded_.clear();
3027 EXPECT_EQ(1u, loaded_.size());
3405 ASSERT_EQ(2u, loaded_.size());
3875 // Need to clear |loaded_| manually before reloading as the
3878 loaded_.clear();
4320 ASSERT_EQ(1u, loaded_.size());
4321 EXPECT_EQ(Manifest::UNPACKED, loaded_[0]->location());
4334 ASSERT_EQ(1u, loaded_.size());
4338 std::string id = loaded_[0]->id();
4343 ASSERT_EQ(0u, loaded_.size());
4356 ASSERT_EQ(1u, loaded_.size());
4357 ASSERT_TRUE(Extension::IdIsValid(loaded_[0]->id()));
4358 EXPECT_EQ(loaded_[0]->location(), Manifest::UNPACKED);
4362 std::string previous_id = loaded_[0]->id();
4367 ASSERT_EQ(1u, loaded_.size());
4368 ASSERT_EQ(previous_id, loaded_[0]->id());
4375 ASSERT_EQ(0u, loaded_.size());
4393 ASSERT_EQ(1u, loaded_.size());
4394 ASSERT_EQ(location, loaded_[0]->location());
4395 ASSERT_EQ("1.0.0.0", loaded_[0]->version()->GetString());
4402 loaded_.clear();
4406 ASSERT_EQ(1u, loaded_.size());
4415 loaded_.clear();
4421 ASSERT_EQ(1u, loaded_.size());
4422 ASSERT_EQ("1.0.0.1", loaded_[0]->version()->GetString());
4429 std::string id = loaded_[0]->id();
4431 management_policy_->MustRemainEnabled(loaded_[0].get(), NULL);
4442 loaded_.clear();
4445 ASSERT_EQ(0u, loaded_.size());
4454 loaded_.clear();
4459 ASSERT_EQ(1u, loaded_.size());
4465 if (management_policy_->MustRemainEnabled(loaded_[0].get(), NULL)) {
4472 loaded_.clear();
4475 ASSERT_EQ(0u, loaded_.size());
4489 ASSERT_EQ(1u, loaded_.size());
4493 loaded_.clear();
4496 ASSERT_EQ(0u, loaded_.size());
4502 loaded_.clear();
4505 ASSERT_EQ(0u, loaded_.size());
4594 ASSERT_EQ(0u, loaded_.size());
4602 ASSERT_EQ(0u, loaded_.size());
4616 ASSERT_EQ(0u, loaded_.size());
4627 EXPECT_EQ(0u, loaded_.size());
4643 ASSERT_EQ(1u, loaded_.size());
4644 ASSERT_EQ(Manifest::EXTERNAL_PREF, loaded_[0]->location());
4645 ASSERT_EQ("1.0.0.0", loaded_[0]->version()->GetString());
4662 EXPECT_EQ(0u, loaded_.size());
4866 ASSERT_EQ(3u, loaded_.size());
4869 ValidateStringPref(loaded_[0]->id(), keys::kCurrentLocale, "en");
4872 ValidateStringPref(loaded_[1]->id(), keys::kCurrentLocale, "en");
4873 EXPECT_FALSE(IsPrefExist(loaded_[1]->id(), keys::kCurrentLocale));
4876 EXPECT_EQ("My name is simple.", loaded_[0]->name());
4879 EXPECT_EQ("My name is simple.", loaded_[1]->name());
4880 EXPECT_EQ("no l10n", loaded_[2]->name());
5029 ASSERT_EQ(3u, loaded_.size());
5033 loaded_[0]->url()));
5035 loaded_[1]->url()));
5037 loaded_[2]->url()));
5064 ASSERT_EQ(1u, loaded_.size());
5065 EXPECT_EQ(Manifest::COMPONENT, loaded_[0]->location());
5073 loaded_.clear();