| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "build/build_config.h" |
| 10 #include "extensions/common/extension.h" | 11 #include "extensions/common/extension.h" |
| 11 #include "extensions/common/extension_set.h" | 12 #include "extensions/common/extension_set.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 14 |
| 14 namespace extensions { | 15 namespace extensions { |
| 15 | 16 |
| 16 namespace { | 17 namespace { |
| 17 | 18 |
| 18 scoped_refptr<Extension> CreateTestExtension(const std::string& name, | 19 scoped_refptr<Extension> CreateTestExtension(const std::string& name, |
| 19 const std::string& launch_url, | 20 const std::string& launch_url, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 139 |
| 139 ASSERT_TRUE(extensions.Contains(ext3->id())); | 140 ASSERT_TRUE(extensions.Contains(ext3->id())); |
| 140 ASSERT_TRUE(extensions.InsertAll(*to_add)); | 141 ASSERT_TRUE(extensions.InsertAll(*to_add)); |
| 141 EXPECT_EQ(4u, extensions.size()); | 142 EXPECT_EQ(4u, extensions.size()); |
| 142 | 143 |
| 143 ASSERT_FALSE(extensions.InsertAll(*to_add)); // Re-adding same set no-ops. | 144 ASSERT_FALSE(extensions.InsertAll(*to_add)); // Re-adding same set no-ops. |
| 144 EXPECT_EQ(4u, extensions.size()); | 145 EXPECT_EQ(4u, extensions.size()); |
| 145 } | 146 } |
| 146 | 147 |
| 147 } // namespace extensions | 148 } // namespace extensions |
| OLD | NEW |