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

Side by Side Diff: ui/base/resource/data_pack_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
« no previous file with comments | « tools/sort-headers.py ('k') | webkit/appcache/appcache_database_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/file_path.h" 5 #include "base/file_path.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/memory/scoped_temp_dir.h"
8 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/scoped_temp_dir.h"
9 #include "base/string_piece.h" 9 #include "base/string_piece.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "ui/base/resource/data_pack.h" 11 #include "ui/base/resource/data_pack.h"
12 12
13 namespace ui { 13 namespace ui {
14 14
15 TEST(DataPackTest, Load) { 15 TEST(DataPackTest, Load) {
16 FilePath data_path; 16 FilePath data_path;
17 PathService::Get(base::DIR_SOURCE_ROOT, &data_path); 17 PathService::Get(base::DIR_SOURCE_ROOT, &data_path);
18 data_path = data_path.Append( 18 data_path = data_path.Append(
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 EXPECT_EQ(two, data); 67 EXPECT_EQ(two, data);
68 ASSERT_TRUE(pack.GetStringPiece(3, &data)); 68 ASSERT_TRUE(pack.GetStringPiece(3, &data));
69 EXPECT_EQ(three, data); 69 EXPECT_EQ(three, data);
70 ASSERT_TRUE(pack.GetStringPiece(4, &data)); 70 ASSERT_TRUE(pack.GetStringPiece(4, &data));
71 EXPECT_EQ(four, data); 71 EXPECT_EQ(four, data);
72 ASSERT_TRUE(pack.GetStringPiece(15, &data)); 72 ASSERT_TRUE(pack.GetStringPiece(15, &data));
73 EXPECT_EQ(fifteen, data); 73 EXPECT_EQ(fifteen, data);
74 } 74 }
75 75
76 } // namespace ui 76 } // namespace ui
OLDNEW
« no previous file with comments | « tools/sort-headers.py ('k') | webkit/appcache/appcache_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698