| OLD | NEW |
| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/file_util.h" | |
| 9 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/file_util.h" |
| 10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| 11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "base/test/sequenced_worker_pool_owner.h" | 12 #include "base/test/sequenced_worker_pool_owner.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/common/extensions/extension_constants.h" | 14 #include "chrome/common/extensions/extension_constants.h" |
| 15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 16 #include "content/public/test/test_browser_thread_bundle.h" | 16 #include "content/public/test/test_browser_thread_bundle.h" |
| 17 #include "content/public/test/test_utils.h" | 17 #include "content/public/test/test_utils.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 19 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 163 |
| 164 EXPECT_TRUE(base::PathExists( | 164 EXPECT_TRUE(base::PathExists( |
| 165 GetExtensionFileName(cache_dir, kTestExtensionId1, "1.0"))); | 165 GetExtensionFileName(cache_dir, kTestExtensionId1, "1.0"))); |
| 166 EXPECT_FALSE(base::PathExists( | 166 EXPECT_FALSE(base::PathExists( |
| 167 GetExtensionFileName(cache_dir, kTestExtensionId2, "2.0"))); | 167 GetExtensionFileName(cache_dir, kTestExtensionId2, "2.0"))); |
| 168 EXPECT_FALSE(base::PathExists( | 168 EXPECT_FALSE(base::PathExists( |
| 169 GetExtensionFileName(cache_dir, kTestExtensionId3, "3.0"))); | 169 GetExtensionFileName(cache_dir, kTestExtensionId3, "3.0"))); |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace extensions | 172 } // namespace extensions |
| OLD | NEW |