| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/extensions/extensions_service_unittest.h" | 5 #include "chrome/browser/extensions/extensions_service_unittest.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
| 14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
| 16 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
| 17 #include "base/string16.h" | 17 #include "base/string16.h" |
| 18 #include "base/string_number_conversions.h" | 18 #include "base/string_number_conversions.h" |
| 19 #include "base/string_util.h" | 19 #include "base/string_util.h" |
| 20 #include "base/task.h" | 20 #include "base/task.h" |
| 21 #include "base/utf_string_conversions.h" |
| 21 #include "base/version.h" | 22 #include "base/version.h" |
| 22 #include "chrome/browser/chrome_thread.h" | 23 #include "chrome/browser/chrome_thread.h" |
| 23 #include "chrome/browser/extensions/crx_installer.h" | 24 #include "chrome/browser/extensions/crx_installer.h" |
| 24 #include "chrome/browser/extensions/extension_creator.h" | 25 #include "chrome/browser/extensions/extension_creator.h" |
| 25 #include "chrome/browser/extensions/extension_error_reporter.h" | 26 #include "chrome/browser/extensions/extension_error_reporter.h" |
| 26 #include "chrome/browser/extensions/extensions_service.h" | 27 #include "chrome/browser/extensions/extensions_service.h" |
| 27 #include "chrome/browser/extensions/external_extension_provider.h" | 28 #include "chrome/browser/extensions/external_extension_provider.h" |
| 28 #include "chrome/browser/extensions/external_pref_extension_provider.h" | 29 #include "chrome/browser/extensions/external_pref_extension_provider.h" |
| 29 #include "chrome/browser/pref_value_store.h" | 30 #include "chrome/browser/pref_value_store.h" |
| 30 #include "chrome/common/extensions/extension.h" | 31 #include "chrome/common/extensions/extension.h" |
| (...skipping 2091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2122 // Component extensions shouldn't get recourded in the prefs. | 2123 // Component extensions shouldn't get recourded in the prefs. |
| 2123 ValidatePrefKeyCount(0); | 2124 ValidatePrefKeyCount(0); |
| 2124 | 2125 |
| 2125 // Reload all extensions, and make sure it comes back. | 2126 // Reload all extensions, and make sure it comes back. |
| 2126 std::string extension_id = service_->extensions()->at(0)->id(); | 2127 std::string extension_id = service_->extensions()->at(0)->id(); |
| 2127 loaded_.clear(); | 2128 loaded_.clear(); |
| 2128 service_->ReloadExtensions(); | 2129 service_->ReloadExtensions(); |
| 2129 ASSERT_EQ(1u, service_->extensions()->size()); | 2130 ASSERT_EQ(1u, service_->extensions()->size()); |
| 2130 EXPECT_EQ(extension_id, service_->extensions()->at(0)->id()); | 2131 EXPECT_EQ(extension_id, service_->extensions()->at(0)->id()); |
| 2131 } | 2132 } |
| OLD | NEW |