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

Side by Side Diff: chrome/common/zip_unittest.cc

Issue 7048007: Move scoped_temp_dir and scoped_native_library back from base/memory to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unknwn Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <set> 5 #include <set>
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/memory/scoped_temp_dir.h"
9 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/scoped_temp_dir.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "chrome/common/chrome_paths.h" 11 #include "chrome/common/chrome_paths.h"
12 #include "chrome/common/zip.h" 12 #include "chrome/common/zip.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "testing/platform_test.h" 14 #include "testing/platform_test.h"
15 15
16 namespace { 16 namespace {
17 17
18 // Make the test a PlatformTest to setup autorelease pools properly on Mac. 18 // Make the test a PlatformTest to setup autorelease pools properly on Mac.
19 class ZipTest : public PlatformTest { 19 class ZipTest : public PlatformTest {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 ScopedTempDir temp_dir; 137 ScopedTempDir temp_dir;
138 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 138 ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
139 FilePath zip_file = temp_dir.path().AppendASCII("out.zip"); 139 FilePath zip_file = temp_dir.path().AppendASCII("out.zip");
140 140
141 EXPECT_TRUE(Zip(src_dir, zip_file, false)); 141 EXPECT_TRUE(Zip(src_dir, zip_file, false));
142 TestUnzipFile(zip_file, false); 142 TestUnzipFile(zip_file, false);
143 } 143 }
144 144
145 } // namespace 145 } // namespace
OLDNEW
« no previous file with comments | « chrome/common/service_process_util_unittest.cc ('k') | chrome/installer/mini_installer/decompress_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698