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

Side by Side Diff: chrome/browser/common/url_database/url_database_unittest.cc

Issue 10948045: introduce chrome/browser/common directory and move url_database(and its dependencies) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | « chrome/browser/common/url_database/url_database_types.cc ('k') | chrome/browser/history/DEPS » ('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) 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_path.h" 5 #include "base/file_path.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/scoped_temp_dir.h" 8 #include "base/scoped_temp_dir.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/history/url_database.h" 11 #include "chrome/browser/common/url_database/url_database.h"
12 #include "sql/connection.h" 12 #include "sql/connection.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 using base::Time; 15 using base::Time;
16 using base::TimeDelta; 16 using base::TimeDelta;
17 17
18 namespace history { 18 namespace history {
19 19
20 namespace { 20 namespace {
21 21
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 ASSERT_EQ(1u, rows.size()); 337 ASSERT_EQ(1u, rows.size());
338 EXPECT_EQ(keyword2, rows[0].term); 338 EXPECT_EQ(keyword2, rows[0].term);
339 EXPECT_EQ(url_id3, rows[0].url_id); 339 EXPECT_EQ(url_id3, rows[0].url_id);
340 rows.clear(); 340 rows.clear();
341 // No row for keyword. 341 // No row for keyword.
342 ASSERT_TRUE(GetKeywordSearchTermRows(keyword, &rows)); 342 ASSERT_TRUE(GetKeywordSearchTermRows(keyword, &rows));
343 EXPECT_TRUE(rows.empty()); 343 EXPECT_TRUE(rows.empty());
344 } 344 }
345 345
346 } // namespace history 346 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/common/url_database/url_database_types.cc ('k') | chrome/browser/history/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698