| 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" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "content/test/test_browser_thread.h" | 30 #include "content/test/test_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; |
| 40 using content::BrowserThread; |
| 40 | 41 |
| 41 namespace { | 42 namespace { |
| 42 | 43 |
| 43 const char kEmptyUpdateUrlData[] = ""; | 44 const char kEmptyUpdateUrlData[] = ""; |
| 44 | 45 |
| 45 int expected_load_flags = | 46 int expected_load_flags = |
| 46 net::LOAD_DO_NOT_SEND_COOKIES | | 47 net::LOAD_DO_NOT_SEND_COOKIES | |
| 47 net::LOAD_DO_NOT_SAVE_COOKIES | | 48 net::LOAD_DO_NOT_SAVE_COOKIES | |
| 48 net::LOAD_DISABLE_CACHE; | 49 net::LOAD_DISABLE_CACHE; |
| 49 | 50 |
| (...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1259 | 1260 |
| 1260 // TODO(asargent) - (http://crbug.com/12780) add tests for: | 1261 // TODO(asargent) - (http://crbug.com/12780) add tests for: |
| 1261 // -prodversionmin (shouldn't update if browser version too old) | 1262 // -prodversionmin (shouldn't update if browser version too old) |
| 1262 // -manifests & updates arriving out of order / interleaved | 1263 // -manifests & updates arriving out of order / interleaved |
| 1263 // -malformed update url (empty, file://, has query, has a # fragment, etc.) | 1264 // -malformed update url (empty, file://, has query, has a # fragment, etc.) |
| 1264 // -An extension gets uninstalled while updates are in progress (so it doesn't | 1265 // -An extension gets uninstalled while updates are in progress (so it doesn't |
| 1265 // "come back from the dead") | 1266 // "come back from the dead") |
| 1266 // -An extension gets manually updated to v3 while we're downloading v2 (ie | 1267 // -An extension gets manually updated to v3 while we're downloading v2 (ie |
| 1267 // you don't get downgraded accidentally) | 1268 // you don't get downgraded accidentally) |
| 1268 // -An update manifest mentions multiple updates | 1269 // -An update manifest mentions multiple updates |
| OLD | NEW |