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

Side by Side Diff: webkit/quota/quota_database_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 #include <iterator> 6 #include <iterator>
7 #include <set> 7 #include <set>
8 8
9 #include "app/sql/connection.h" 9 #include "app/sql/connection.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/memory/scoped_temp_dir.h" 11 #include "base/scoped_temp_dir.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "webkit/quota/quota_database.h" 14 #include "webkit/quota/quota_database.h"
15 15
16 namespace { 16 namespace {
17 17
18 const base::Time kZeroTime; 18 const base::Time kZeroTime;
19 19
20 class TestErrorDelegate : public sql::ErrorDelegate { 20 class TestErrorDelegate : public sql::ErrorDelegate {
21 public: 21 public:
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 } 241 }
242 242
243 TEST_F(QuotaDatabaseTest, RegisterOrigins) { 243 TEST_F(QuotaDatabaseTest, RegisterOrigins) {
244 ScopedTempDir data_dir; 244 ScopedTempDir data_dir;
245 ASSERT_TRUE(data_dir.CreateUniqueTempDir()); 245 ASSERT_TRUE(data_dir.CreateUniqueTempDir());
246 const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); 246 const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db");
247 RegisterOrigins(kDbFile); 247 RegisterOrigins(kDbFile);
248 RegisterOrigins(FilePath()); 248 RegisterOrigins(FilePath());
249 } 249 }
250 } // namespace quota 250 } // namespace quota
OLDNEW
« no previous file with comments | « webkit/fileapi/sandbox_mount_point_provider_unittest.cc ('k') | webkit/quota/quota_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698