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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 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
« no previous file with comments | « chrome/browser/history/shortcuts_backend.cc ('k') | chrome/browser/history/top_sites.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_util.h" 5 #include "base/file_util.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/scoped_temp_dir.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/autocomplete/shortcuts_provider_shortcut.h" 11 #include "chrome/browser/autocomplete/shortcuts_provider_shortcut.h"
12 #include "chrome/browser/history/shortcuts_backend.h" 12 #include "chrome/browser/history/shortcuts_backend.h"
13 #include "chrome/browser/history/shortcuts_database.h" 13 #include "chrome/browser/history/shortcuts_database.h"
14 #include "chrome/common/guid.h" 14 #include "chrome/common/guid.h"
15 #include "content/test/test_browser_thread.h" 15 #include "content/test/test_browser_thread.h"
16 #include "sql/statement.h" 16 #include "sql/statement.h"
17 17
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 using content::BrowserThread;
20 using shortcuts_provider::Shortcut; 21 using shortcuts_provider::Shortcut;
21 using shortcuts_provider::ShortcutMap; 22 using shortcuts_provider::ShortcutMap;
22 23
23 namespace history { 24 namespace history {
24 25
25 const base::TimeDelta kMaxRequestWaitTimeout = base::TimeDelta::FromSeconds(1); 26 const base::TimeDelta kMaxRequestWaitTimeout = base::TimeDelta::FromSeconds(1);
26 27
27 class ShortcutsBackendTest : public testing::Test, 28 class ShortcutsBackendTest : public testing::Test,
28 public ShortcutsBackend::ShortcutsBackendObserver { 29 public ShortcutsBackend::ShortcutsBackendObserver {
29 public: 30 public:
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 std::vector<std::string> deleted_ids; 155 std::vector<std::string> deleted_ids;
155 deleted_ids.push_back(shortcut3.id); 156 deleted_ids.push_back(shortcut3.id);
156 deleted_ids.push_back(shortcut4.id); 157 deleted_ids.push_back(shortcut4.id);
157 158
158 EXPECT_TRUE(backend_->DeleteShortcutsWithIds(deleted_ids)); 159 EXPECT_TRUE(backend_->DeleteShortcutsWithIds(deleted_ids));
159 160
160 ASSERT_EQ(0U, shortcuts.size()); 161 ASSERT_EQ(0U, shortcuts.size());
161 } 162 }
162 163
163 } // namespace history 164 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/shortcuts_backend.cc ('k') | chrome/browser/history/top_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698