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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/file_util.h" | 6 #include "base/files/file_util.h" |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/extensions/sandboxed_unpacker.h" | 13 #include "chrome/browser/extensions/sandboxed_unpacker.h" |
14 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
15 #include "content/public/test/test_browser_thread_bundle.h" | 15 #include "content/public/test/test_browser_thread_bundle.h" |
16 #include "content/public/test/test_utils.h" | 16 #include "content/public/test/test_utils.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 TEST_F(SandboxedUnpackerTest, WithCatalogsSuccess) { | 119 TEST_F(SandboxedUnpackerTest, WithCatalogsSuccess) { |
120 SetupUnpacker("good_l10n.crx"); | 120 SetupUnpacker("good_l10n.crx"); |
121 // Check that there is _locales folder. | 121 // Check that there is _locales folder. |
122 base::FilePath install_path = | 122 base::FilePath install_path = |
123 GetInstallPath().Append(kLocaleFolder); | 123 GetInstallPath().Append(kLocaleFolder); |
124 EXPECT_TRUE(base::PathExists(install_path)); | 124 EXPECT_TRUE(base::PathExists(install_path)); |
125 } | 125 } |
126 | 126 |
127 } // namespace extensions | 127 } // namespace extensions |
OLD | NEW |