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

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

Issue 689553002: Cleanup: Remove unneeded path_service.h includes in base and chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win Created 6 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
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"
10 #include "base/stl_util.h" 9 #include "base/stl_util.h"
11 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
13 #include "base/time/time.h" 12 #include "base/time/time.h"
14 #include "components/search_engines/keyword_table.h" 13 #include "components/search_engines/keyword_table.h"
15 #include "components/search_engines/template_url_data.h" 14 #include "components/search_engines/template_url_data.h"
16 #include "components/webdata/common/web_database.h" 15 #include "components/webdata/common/web_database.h"
17 #include "sql/statement.h" 16 #include "sql/statement.h"
18 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
19 18
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // previously saved into the database. 217 // previously saved into the database.
219 sql::Statement s; 218 sql::Statement s;
220 GetStatement("UPDATE keywords SET url=? WHERE id=?", &s); 219 GetStatement("UPDATE keywords SET url=? WHERE id=?", &s);
221 s.BindString16(0, base::string16()); 220 s.BindString16(0, base::string16());
222 s.BindInt64(1, 2000); 221 s.BindInt64(1, 2000);
223 EXPECT_TRUE(s.Run()); 222 EXPECT_TRUE(s.Run());
224 223
225 // GetKeywords() should erase the entry with the empty URL field. 224 // GetKeywords() should erase the entry with the empty URL field.
226 EXPECT_EQ(1U, GetKeywords().size()); 225 EXPECT_EQ(1U, GetKeywords().size());
227 } 226 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/system_info_ui.cc ('k') | chrome/common/extensions/permissions/permission_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698