Index: chrome/browser/extensions/sandboxed_unpacker_unittest.cc |
diff --git a/chrome/browser/extensions/sandboxed_unpacker_unittest.cc b/chrome/browser/extensions/sandboxed_unpacker_unittest.cc |
index 70f3f0bbd40248b4edf3e2a1b42870f210e087f3..eadc02325e5ee61c31a8b3582e8c90b5a8fa52b6 100644 |
--- a/chrome/browser/extensions/sandboxed_unpacker_unittest.cc |
+++ b/chrome/browser/extensions/sandboxed_unpacker_unittest.cc |
@@ -63,7 +63,8 @@ class MockSandboxedUnpackerClient : public SandboxedUnpackerClient { |
class SandboxedUnpackerTest : public testing::Test { |
public: |
virtual void SetUp() { |
- ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); |
+ ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); |
+ ASSERT_TRUE(all_extensions_dir_.CreateUniqueTempDir()); |
file_thread_.reset(new content::TestBrowserThread(BrowserThread::FILE, |
&loop_)); |
// It will delete itself. |
@@ -104,7 +105,8 @@ class SandboxedUnpackerTest : public testing::Test { |
sandboxed_unpacker_ = |
new SandboxedUnpacker(crx_path, false, Extension::INTERNAL, |
- Extension::NO_FLAGS, client_); |
+ Extension::NO_FLAGS, all_extensions_dir_.path(), |
+ client_); |
// Hack since SandboxedUnpacker gets its background thread id from |
// the Start call, but we don't call it here. |
@@ -157,6 +159,7 @@ class SandboxedUnpackerTest : public testing::Test { |
protected: |
ScopedTempDir temp_dir_; |
+ ScopedTempDir all_extensions_dir_; |
FilePath temp_path_; |
MockSandboxedUnpackerClient* client_; |
scoped_ptr<Unpacker> unpacker_; |