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

Side by Side Diff: webkit/plugins/npapi/plugin_group_unittest.cc

Issue 6578022: Merge 75858 - Don't access WebPluginInfo array out of bounds in PluginGroup::... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/648/src/
Patch Set: Created 9 years, 10 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
« no previous file with comments | « webkit/plugins/npapi/plugin_group.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/plugins/npapi/plugin_group.h" 5 #include "webkit/plugins/npapi/plugin_group.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 EXPECT_EQ(kPlugin3043.desc, group->description()); 276 EXPECT_EQ(kPlugin3043.desc, group->description());
277 EXPECT_TRUE(group->IsVulnerable()); 277 EXPECT_TRUE(group->IsVulnerable());
278 278
279 EXPECT_TRUE(group->EnableGroup(false)); 279 EXPECT_TRUE(group->EnableGroup(false));
280 EXPECT_EQ(kPlugin3044.desc, group->description()); 280 EXPECT_EQ(kPlugin3044.desc, group->description());
281 EXPECT_FALSE(group->IsVulnerable()); 281 EXPECT_FALSE(group->IsVulnerable());
282 282
283 EXPECT_TRUE(group->RemovePlugin(kPlugin3044.path)); 283 EXPECT_TRUE(group->RemovePlugin(kPlugin3044.path));
284 EXPECT_EQ(kPlugin3043.desc, group->description()); 284 EXPECT_EQ(kPlugin3043.desc, group->description());
285 EXPECT_TRUE(group->IsVulnerable()); 285 EXPECT_TRUE(group->IsVulnerable());
286
287 EXPECT_TRUE(group->RemovePlugin(kPlugin3043.path));
288 EXPECT_TRUE(group->IsEmpty());
289 EXPECT_EQ(string16(), group->description());
286 } 290 }
287 291
288 } // namespace npapi 292 } // namespace npapi
289 } // namespace webkit 293 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/plugin_group.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698