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 <map> | 5 #include <map> |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
13 #include "base/string_split.h" | 13 #include "base/string_split.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/stringprintf.h" | 15 #include "base/stringprintf.h" |
16 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
17 #include "base/version.h" | 17 #include "base/version.h" |
18 #include "chrome/browser/extensions/crx_installer.h" | 18 #include "chrome/browser/extensions/crx_installer.h" |
19 #include "chrome/browser/extensions/extension_error_reporter.h" | 19 #include "chrome/browser/extensions/extension_error_reporter.h" |
20 #include "chrome/browser/extensions/extension_sync_data.h" | 20 #include "chrome/browser/extensions/extension_sync_data.h" |
21 #include "chrome/browser/extensions/extension_updater.h" | 21 #include "chrome/browser/extensions/extension_updater.h" |
22 #include "chrome/browser/extensions/test_extension_prefs.h" | 22 #include "chrome/browser/extensions/test_extension_prefs.h" |
23 #include "chrome/browser/extensions/test_extension_service.h" | 23 #include "chrome/browser/extensions/test_extension_service.h" |
24 #include "chrome/browser/prefs/pref_service.h" | 24 #include "chrome/browser/prefs/pref_service.h" |
25 #include "chrome/common/extensions/extension.h" | 25 #include "chrome/common/extensions/extension.h" |
26 #include "chrome/common/extensions/extension_constants.h" | 26 #include "chrome/common/extensions/extension_constants.h" |
27 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
| 28 #include "chrome/test/base/testing_browser_process_test.h" |
28 #include "chrome/test/base/testing_profile.h" | 29 #include "chrome/test/base/testing_profile.h" |
29 #include "chrome/test/testing_browser_process_test.h" | |
30 #include "content/browser/browser_thread.h" | 30 #include "content/browser/browser_thread.h" |
31 #include "content/test/test_url_fetcher_factory.h" | 31 #include "content/test/test_url_fetcher_factory.h" |
32 #include "libxml/globals.h" | 32 #include "libxml/globals.h" |
33 #include "net/base/escape.h" | 33 #include "net/base/escape.h" |
34 #include "net/base/load_flags.h" | 34 #include "net/base/load_flags.h" |
35 #include "net/url_request/url_request_status.h" | 35 #include "net/url_request/url_request_status.h" |
36 #include "testing/gtest/include/gtest/gtest.h" | 36 #include "testing/gtest/include/gtest/gtest.h" |
37 | 37 |
38 using base::Time; | 38 using base::Time; |
39 using base::TimeDelta; | 39 using base::TimeDelta; |
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1227 | 1227 |
1228 // TODO(asargent) - (http://crbug.com/12780) add tests for: | 1228 // TODO(asargent) - (http://crbug.com/12780) add tests for: |
1229 // -prodversionmin (shouldn't update if browser version too old) | 1229 // -prodversionmin (shouldn't update if browser version too old) |
1230 // -manifests & updates arriving out of order / interleaved | 1230 // -manifests & updates arriving out of order / interleaved |
1231 // -malformed update url (empty, file://, has query, has a # fragment, etc.) | 1231 // -malformed update url (empty, file://, has query, has a # fragment, etc.) |
1232 // -An extension gets uninstalled while updates are in progress (so it doesn't | 1232 // -An extension gets uninstalled while updates are in progress (so it doesn't |
1233 // "come back from the dead") | 1233 // "come back from the dead") |
1234 // -An extension gets manually updated to v3 while we're downloading v2 (ie | 1234 // -An extension gets manually updated to v3 while we're downloading v2 (ie |
1235 // you don't get downgraded accidentally) | 1235 // you don't get downgraded accidentally) |
1236 // -An update manifest mentions multiple updates | 1236 // -An update manifest mentions multiple updates |
OLD | NEW |