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

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

Issue 16561007: Use a direct include of utf_string_conversions.h in chrome/browser/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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) 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/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/files/scoped_temp_dir.h" 6 #include "base/files/scoped_temp_dir.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/history/url_database.h" 10 #include "chrome/browser/history/url_database.h"
11 #include "sql/connection.h" 11 #include "sql/connection.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 using base::Time; 14 using base::Time;
15 using base::TimeDelta; 15 using base::TimeDelta;
16 16
17 namespace history { 17 namespace history {
18 18
19 namespace { 19 namespace {
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 ASSERT_EQ(1u, rows.size()); 336 ASSERT_EQ(1u, rows.size());
337 EXPECT_EQ(keyword2, rows[0].term); 337 EXPECT_EQ(keyword2, rows[0].term);
338 EXPECT_EQ(url_id3, rows[0].url_id); 338 EXPECT_EQ(url_id3, rows[0].url_id);
339 rows.clear(); 339 rows.clear();
340 // No row for keyword. 340 // No row for keyword.
341 ASSERT_TRUE(GetKeywordSearchTermRows(keyword, &rows)); 341 ASSERT_TRUE(GetKeywordSearchTermRows(keyword, &rows));
342 EXPECT_TRUE(rows.empty()); 342 EXPECT_TRUE(rows.empty());
343 } 343 }
344 344
345 } // namespace history 345 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/url_database.cc ('k') | chrome/browser/history/url_index_private_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698