Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: chrome/browser/chromeos/extensions/external_cache_unittest.cc

Issue 575113002: Move Webstore URL concepts to //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ENABLE_EXTENSIONS guard in core chrome code Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/files/file_util.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"
19 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
20 #include "content/public/test/test_browser_thread_bundle.h" 19 #include "content/public/test/test_browser_thread_bundle.h"
20 #include "extensions/common/extension_urls.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"
23 #include "net/url_request/url_request_test_util.h" 23 #include "net/url_request/url_request_test_util.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 25
26 namespace { 26 namespace {
27 27
28 const char kTestExtensionId1[] = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; 28 const char kTestExtensionId1[] = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
29 const char kTestExtensionId2[] = "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"; 29 const char kTestExtensionId2[] = "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb";
30 const char kTestExtensionId3[] = "cccccccccccccccccccccccccccccccc"; 30 const char kTestExtensionId3[] = "cccccccccccccccccccccccccccccccc";
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698