OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <memory> | 5 #include <memory> |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "base/threading/sequenced_worker_pool.h" | |
18 #include "base/version.h" | 17 #include "base/version.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" |
21 #include "extensions/browser/content_hash_fetcher.h" | 20 #include "extensions/browser/content_hash_fetcher.h" |
22 #include "extensions/browser/content_verifier_delegate.h" | 21 #include "extensions/browser/content_verifier_delegate.h" |
23 #include "extensions/browser/extensions_test.h" | 22 #include "extensions/browser/extensions_test.h" |
24 #include "extensions/common/constants.h" | 23 #include "extensions/common/constants.h" |
25 #include "extensions/common/extension_paths.h" | 24 #include "extensions/common/extension_paths.h" |
26 #include "extensions/common/file_util.h" | 25 #include "extensions/common/file_util.h" |
27 #include "net/url_request/test_url_request_interceptor.h" | 26 #include "net/url_request/test_url_request_interceptor.h" |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 EXPECT_TRUE( | 251 EXPECT_TRUE( |
253 base::ContainsKey(result->mismatch_paths, script_path.BaseName())); | 252 base::ContainsKey(result->mismatch_paths, script_path.BaseName())); |
254 | 253 |
255 // Make sure the verified_contents.json file was written into the extension's | 254 // Make sure the verified_contents.json file was written into the extension's |
256 // install dir. | 255 // install dir. |
257 EXPECT_TRUE( | 256 EXPECT_TRUE( |
258 base::PathExists(file_util::GetVerifiedContentsPath(extension->path()))); | 257 base::PathExists(file_util::GetVerifiedContentsPath(extension->path()))); |
259 } | 258 } |
260 | 259 |
261 } // namespace extensions | 260 } // namespace extensions |
OLD | NEW |