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

Side by Side Diff: chrome/browser/history/shortcuts_database_unittest.cc

Issue 11359217: Move scoped_temp_dir from base to base/files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_util.h" 5 #include "base/file_util.h"
6 #include "base/files/scoped_temp_dir.h"
6 #include "base/path_service.h" 7 #include "base/path_service.h"
7 #include "base/scoped_temp_dir.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/history/shortcuts_database.h" 11 #include "chrome/browser/history/shortcuts_database.h"
12 #include "chrome/test/base/testing_profile.h" 12 #include "chrome/test/base/testing_profile.h"
13 #include "sql/statement.h" 13 #include "sql/statement.h"
14 14
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace history { 17 namespace history {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 AddAll(); 183 AddAll();
184 ShortcutsDatabase::GuidToShortcutMap shortcuts; 184 ShortcutsDatabase::GuidToShortcutMap shortcuts;
185 EXPECT_TRUE(db_->LoadShortcuts(&shortcuts)); 185 EXPECT_TRUE(db_->LoadShortcuts(&shortcuts));
186 EXPECT_EQ(arraysize(shortcut_test_db), shortcuts.size()); 186 EXPECT_EQ(arraysize(shortcut_test_db), shortcuts.size());
187 EXPECT_TRUE(db_->DeleteAllShortcuts()); 187 EXPECT_TRUE(db_->DeleteAllShortcuts());
188 EXPECT_TRUE(db_->LoadShortcuts(&shortcuts)); 188 EXPECT_TRUE(db_->LoadShortcuts(&shortcuts));
189 EXPECT_EQ(0U, shortcuts.size()); 189 EXPECT_EQ(0U, shortcuts.size());
190 } 190 }
191 191
192 } // namespace history 192 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/shortcuts_backend_unittest.cc ('k') | chrome/browser/history/text_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698