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 "chrome/browser/chromeos/extensions/external_cache.h" | 5 #include "chrome/browser/chromeos/extensions/external_cache.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/file_util.h" | |
12 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/file_util.h" |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/test/sequenced_worker_pool_owner.h" | 15 #include "base/test/sequenced_worker_pool_owner.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/extensions/external_provider_impl.h" | 17 #include "chrome/browser/extensions/external_provider_impl.h" |
18 #include "chrome/common/extensions/extension_constants.h" | 18 #include "chrome/common/extensions/extension_constants.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 #include "content/public/test/test_browser_thread_bundle.h" | 20 #include "content/public/test/test_browser_thread_bundle.h" |
21 #include "net/url_request/test_url_fetcher_factory.h" | 21 #include "net/url_request/test_url_fetcher_factory.h" |
22 #include "net/url_request/url_fetcher_impl.h" | 22 #include "net/url_request/url_fetcher_impl.h" |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 ASSERT_TRUE(provided_prefs()->GetDictionary(kTestExtensionId1, &entry1)); | 307 ASSERT_TRUE(provided_prefs()->GetDictionary(kTestExtensionId1, &entry1)); |
308 EXPECT_TRUE(entry1->HasKey( | 308 EXPECT_TRUE(entry1->HasKey( |
309 extensions::ExternalProviderImpl::kExternalUpdateUrl)); | 309 extensions::ExternalProviderImpl::kExternalUpdateUrl)); |
310 EXPECT_FALSE(entry1->HasKey( | 310 EXPECT_FALSE(entry1->HasKey( |
311 extensions::ExternalProviderImpl::kExternalCrx)); | 311 extensions::ExternalProviderImpl::kExternalCrx)); |
312 EXPECT_FALSE(entry1->HasKey( | 312 EXPECT_FALSE(entry1->HasKey( |
313 extensions::ExternalProviderImpl::kExternalVersion)); | 313 extensions::ExternalProviderImpl::kExternalVersion)); |
314 } | 314 } |
315 | 315 |
316 } // namespace chromeos | 316 } // namespace chromeos |
OLD | NEW |