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

Side by Side Diff: chrome/common/extensions/extension_resource_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 <algorithm> 5 #include <algorithm>
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 "chrome/common/chrome_paths.h" 10 #include "chrome/common/chrome_paths.h"
11 #include "chrome/common/extensions/extension.h" 11 #include "chrome/common/extensions/extension.h"
12 #include "chrome/common/extensions/extension_l10n_util.h" 12 #include "chrome/common/extensions/extension_l10n_util.h"
13 #include "chrome/common/extensions/extension_resource.h" 13 #include "chrome/common/extensions/extension_resource.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 16
17 TEST(ExtensionResourceTest, CreateEmptyResource) { 17 TEST(ExtensionResourceTest, CreateEmptyResource) {
18 ExtensionResource resource; 18 ExtensionResource resource;
19 19
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // See http://crbug.com/27359. 80 // See http://crbug.com/27359.
81 expected_path = root_resource; 81 expected_path = root_resource;
82 ASSERT_TRUE(file_util::AbsolutePath(&expected_path)); 82 ASSERT_TRUE(file_util::AbsolutePath(&expected_path));
83 83
84 EXPECT_EQ(ToLower(expected_path.value()), ToLower(resolved_path.value())); 84 EXPECT_EQ(ToLower(expected_path.value()), ToLower(resolved_path.value()));
85 EXPECT_EQ(ToLower(temp.path().value()), 85 EXPECT_EQ(ToLower(temp.path().value()),
86 ToLower(resource.extension_root().value())); 86 ToLower(resource.extension_root().value()));
87 EXPECT_EQ(ToLower(FilePath().AppendASCII(filename).value()), 87 EXPECT_EQ(ToLower(FilePath().AppendASCII(filename).value()),
88 ToLower(resource.relative_path().value())); 88 ToLower(resource.relative_path().value()));
89 } 89 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_l10n_util_unittest.cc ('k') | chrome/common/extensions/extension_unpacker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698