| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |