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/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 "chrome/common/extensions/extension.h" | |
16 #include "content/public/browser/render_process_host.h" | 15 #include "content/public/browser/render_process_host.h" |
17 #include "content/public/test/test_browser_thread_bundle.h" | 16 #include "content/public/test/test_browser_thread_bundle.h" |
18 #include "content/public/test/test_utils.h" | 17 #include "content/public/test/test_utils.h" |
19 #include "extensions/common/constants.h" | 18 #include "extensions/common/constants.h" |
| 19 #include "extensions/common/extension.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "third_party/skia/include/core/SkBitmap.h" | 21 #include "third_party/skia/include/core/SkBitmap.h" |
22 | 22 |
23 namespace extensions { | 23 namespace extensions { |
24 | 24 |
25 class MockSandboxedUnpackerClient : public SandboxedUnpackerClient { | 25 class MockSandboxedUnpackerClient : public SandboxedUnpackerClient { |
26 public: | 26 public: |
27 | 27 |
28 void WaitForUnpack() { | 28 void WaitForUnpack() { |
29 scoped_refptr<content::MessageLoopRunner> runner = | 29 scoped_refptr<content::MessageLoopRunner> runner = |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 TEST_F(SandboxedUnpackerTest, MAYBE_WithCatalogsSuccess) { | 126 TEST_F(SandboxedUnpackerTest, MAYBE_WithCatalogsSuccess) { |
127 SetupUnpacker("good_l10n.crx"); | 127 SetupUnpacker("good_l10n.crx"); |
128 // Check that there is _locales folder. | 128 // Check that there is _locales folder. |
129 base::FilePath install_path = | 129 base::FilePath install_path = |
130 GetInstallPath().Append(kLocaleFolder); | 130 GetInstallPath().Append(kLocaleFolder); |
131 EXPECT_TRUE(base::PathExists(install_path)); | 131 EXPECT_TRUE(base::PathExists(install_path)); |
132 } | 132 } |
133 | 133 |
134 } // namespace extensions | 134 } // namespace extensions |
OLD | NEW |