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

Side by Side Diff: chrome/common/extensions/extension_file_util_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 "chrome/common/extensions/extension_file_util.h" 5 #include "chrome/common/extensions/extension_file_util.h"
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/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/common/chrome_paths.h" 11 #include "chrome/common/chrome_paths.h"
12 #include "chrome/common/extensions/extension.h" 12 #include "chrome/common/extensions/extension.h"
13 #include "chrome/common/extensions/extension_constants.h" 13 #include "chrome/common/extensions/extension_constants.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace keys = extension_manifest_keys; 16 namespace keys = extension_manifest_keys;
17 17
18 TEST(ExtensionFileUtil, InstallUninstallGarbageCollect) { 18 TEST(ExtensionFileUtil, InstallUninstallGarbageCollect) {
19 ScopedTempDir temp; 19 ScopedTempDir temp;
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 EXPECT_FALSE(actual_path.IsAbsolute()) << 234 EXPECT_FALSE(actual_path.IsAbsolute()) <<
235 " For the path " << actual_path.value(); 235 " For the path " << actual_path.value();
236 EXPECT_EQ(expected_path.value(), actual_path.value()) << 236 EXPECT_EQ(expected_path.value(), actual_path.value()) <<
237 " For the path " << url; 237 " For the path " << url;
238 } 238 }
239 } 239 }
240 240
241 // TODO(aa): More tests as motivation allows. Maybe steal some from 241 // TODO(aa): More tests as motivation allows. Maybe steal some from
242 // ExtensionService? Many of them could probably be tested here without the 242 // ExtensionService? Many of them could probably be tested here without the
243 // MessageLoop shenanigans. 243 // MessageLoop shenanigans.
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_file_util.cc ('k') | chrome/common/extensions/extension_l10n_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698