diff options
author | pam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-21 11:31:37 +0000 |
---|---|---|
committer | pam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-21 11:31:37 +0000 |
commit | 0e94b4edae6581a1da92c2479c3b775d4961f9c8 (patch) | |
tree | 0378c71b0251930702c1839d255fefe8bbc185e3 | |
parent | 1635b62e008583785c4e87a39d947844ae265cc6 (diff) | |
download | chromium_src-0e94b4edae6581a1da92c2479c3b775d4961f9c8.zip chromium_src-0e94b4edae6581a1da92c2479c3b775d4961f9c8.tar.gz chromium_src-0e94b4edae6581a1da92c2479c3b775d4961f9c8.tar.bz2 |
Fix compilation of unit test AsynchDelayAndLoad.
ExtensionService::extensions() still uses an ExtensionList on this branch, rather than the ExtensionSet it's using on trunk.
TBR=yoz
BUG=104091, 107148
TEST=compile works and unit_tests NetworkDelayListenerTest.AsynchDelayAndLoad passes
Review URL: http://codereview.chromium.org/8949036
git-svn-id: svn://svn.chromium.org/chrome/branches/963/src@115312 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/extensions/network_delay_listener_unittest.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/extensions/network_delay_listener_unittest.cc b/chrome/browser/extensions/network_delay_listener_unittest.cc index 4de710c..739e6ba 100644 --- a/chrome/browser/extensions/network_delay_listener_unittest.cc +++ b/chrome/browser/extensions/network_delay_listener_unittest.cc @@ -200,9 +200,8 @@ TEST_F(NetworkDelayListenerTest, DelayAndUnload) { TEST_F(NetworkDelayListenerTest, AsynchDelayAndLoad) { LoadTestExtension(kTestExtensionId2); ASSERT_EQ(1u, service_->extensions()->size()); - const Extension* extension = - service_->extensions()->GetByID(kTestExtensionId2); - ASSERT_TRUE(extension); + const Extension* extension = service_->extensions()->at(0).get(); + ASSERT_FALSE(extension == NULL); TestDelegate delegate; scoped_ptr<TestURLRequest> request(StartTestRequest(&delegate, kTestUrl)); |