Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1792)

Unified Diff: chrome/browser/extensions/sandboxed_unpacker_unittest.cc

Issue 11198067: Move extension unpack intermediate dir to Extensions/Temp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: standardize names Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/sandboxed_unpacker.cc ('k') | chrome/common/chrome_paths.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c16f325d2f2fd397fe2d94059f3b11ae424f5a16 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(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, 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 extensions_dir_;
FilePath temp_path_;
MockSandboxedUnpackerClient* client_;
scoped_ptr<Unpacker> unpacker_;
« no previous file with comments | « chrome/browser/extensions/sandboxed_unpacker.cc ('k') | chrome/common/chrome_paths.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698