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

Side by Side Diff: chrome/browser/webdata/keyword_table_unittest.cc

Issue 16387014: Use a direct include of utf_string_conversions.h in chrome/browser/, part 3. (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
« no previous file with comments | « chrome/browser/webdata/keyword_table.cc ('k') | chrome/browser/webdata/logins_table_win.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) 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/utf_string_conversions.h"
12 #include "base/time.h" 13 #include "base/time.h"
13 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/search_engines/template_url.h" 14 #include "chrome/browser/search_engines/template_url.h"
15 #include "chrome/browser/webdata/keyword_table.h" 15 #include "chrome/browser/webdata/keyword_table.h"
16 #include "components/webdata/common/web_database.h" 16 #include "components/webdata/common/web_database.h"
17 #include "sql/statement.h" 17 #include "sql/statement.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 using base::Time; 20 using base::Time;
21 using base::TimeDelta; 21 using base::TimeDelta;
22 22
23 class KeywordTableTest : public testing::Test { 23 class KeywordTableTest : public testing::Test {
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 sql::Statement s(table_->db_->GetUniqueStatement( 295 sql::Statement s(table_->db_->GetUniqueStatement(
296 "UPDATE keywords SET url=? WHERE id=?")); 296 "UPDATE keywords SET url=? WHERE id=?"));
297 s.BindString16(0, string16()); 297 s.BindString16(0, string16());
298 s.BindInt64(1, 2000); 298 s.BindInt64(1, 2000);
299 EXPECT_TRUE(s.Run()); 299 EXPECT_TRUE(s.Run());
300 300
301 // GetKeywords() should erase the entry with the empty URL field. 301 // GetKeywords() should erase the entry with the empty URL field.
302 EXPECT_TRUE(table_->GetKeywords(&keywords)); 302 EXPECT_TRUE(table_->GetKeywords(&keywords));
303 EXPECT_EQ(1U, keywords.size()); 303 EXPECT_EQ(1U, keywords.size());
304 } 304 }
OLDNEW
« no previous file with comments | « chrome/browser/webdata/keyword_table.cc ('k') | chrome/browser/webdata/logins_table_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698