| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/base64.h" | 5 #include "base/base64.h" |
| 6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "components/crx_file/id_util.h" | 15 #include "components/crx_file/id_util.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 "extensions/browser/extensions_test.h" | 18 #include "extensions/browser/extensions_test.h" |
| 19 #include "extensions/browser/sandboxed_unpacker.h" | 19 #include "extensions/browser/sandboxed_unpacker.h" |
| 20 #include "extensions/common/constants.h" | 20 #include "extensions/common/constants.h" |
| 21 #include "extensions/common/extension.h" | 21 #include "extensions/common/extension.h" |
| 22 #include "extensions/common/extension_paths.h" | 22 #include "extensions/common/extension_paths.h" |
| 23 #include "extensions/common/switches.h" | 23 #include "extensions/common/switches.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 EXPECT_EQ(base::string16(), GetInstallError()); | 182 EXPECT_EQ(base::string16(), GetInstallError()); |
| 183 } | 183 } |
| 184 | 184 |
| 185 TEST_F(SandboxedUnpackerTest, SkipHashCheck) { | 185 TEST_F(SandboxedUnpackerTest, SkipHashCheck) { |
| 186 SetupUnpacker("good_l10n.crx", "badhash"); | 186 SetupUnpacker("good_l10n.crx", "badhash"); |
| 187 // Check that there is no error message. | 187 // Check that there is no error message. |
| 188 EXPECT_EQ(base::string16(), GetInstallError()); | 188 EXPECT_EQ(base::string16(), GetInstallError()); |
| 189 } | 189 } |
| 190 | 190 |
| 191 } // namespace extensions | 191 } // namespace extensions |
| OLD | NEW |