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

Side by Side Diff: chrome/browser/extensions/updater/local_extension_cache_unittest.cc

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/updater/local_extension_cache.h" 5 #include "chrome/browser/extensions/updater/local_extension_cache.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
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/macros.h" 14 #include "base/macros.h"
15 #include "base/run_loop.h" 15 #include "base/run_loop.h"
16 #include "base/sequenced_task_runner.h"
16 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
17 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
18 #include "base/test/sequenced_worker_pool_owner.h" 19 #include "base/test/sequenced_worker_pool_owner.h"
19 #include "base/values.h" 20 #include "base/values.h"
20 #include "chrome/common/extensions/extension_constants.h" 21 #include "chrome/common/extensions/extension_constants.h"
21 #include "content/public/browser/browser_thread.h" 22 #include "content/public/browser/browser_thread.h"
22 #include "content/public/test/test_browser_thread_bundle.h" 23 #include "content/public/test/test_browser_thread_bundle.h"
23 #include "content/public/test/test_utils.h" 24 #include "content/public/test/test_utils.h"
24 #include "crypto/secure_hash.h" 25 #include "crypto/secure_hash.h"
25 #include "crypto/sha2.h" 26 #include "crypto/sha2.h"
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 const base::FilePath hashed2 = 447 const base::FilePath hashed2 =
447 GetExtensionFileName(cache_dir, kTestExtensionId1, "3.0", hash4); 448 GetExtensionFileName(cache_dir, kTestExtensionId1, "3.0", hash4);
448 EXPECT_TRUE(base::PathExists(hashed2)); 449 EXPECT_TRUE(base::PathExists(hashed2));
449 EXPECT_TRUE(cache.GetExtension(kTestExtensionId1, hash4, NULL, NULL)); 450 EXPECT_TRUE(cache.GetExtension(kTestExtensionId1, hash4, NULL, NULL));
450 // Old file kept 451 // Old file kept
451 EXPECT_TRUE(cache.GetExtension(kTestExtensionId1, hash3, NULL, NULL)); 452 EXPECT_TRUE(cache.GetExtension(kTestExtensionId1, hash3, NULL, NULL));
452 EXPECT_TRUE(base::DeleteFile(temp7, false)); 453 EXPECT_TRUE(base::DeleteFile(temp7, false));
453 } 454 }
454 455
455 } // namespace extensions 456 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_gcm_app_handler_unittest.cc ('k') | chrome/browser/gcm/gcm_profile_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698