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

Side by Side Diff: components/search_engines/keyword_table_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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
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/macros.h"
9 #include "base/stl_util.h" 10 #include "base/stl_util.h"
10 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
12 #include "base/time/time.h" 13 #include "base/time/time.h"
13 #include "components/search_engines/keyword_table.h" 14 #include "components/search_engines/keyword_table.h"
14 #include "components/search_engines/template_url_data.h" 15 #include "components/search_engines/template_url_data.h"
15 #include "components/webdata/common/web_database.h" 16 #include "components/webdata/common/web_database.h"
16 #include "sql/statement.h" 17 #include "sql/statement.h"
17 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
18 19
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 keyword.id = 2000; 248 keyword.id = 2000;
248 AddKeyword(keyword); 249 AddKeyword(keyword);
249 KeywordTable::Keywords keywords(GetKeywords()); 250 KeywordTable::Keywords keywords(GetKeywords());
250 EXPECT_EQ(1U, keywords.size()); 251 EXPECT_EQ(1U, keywords.size());
251 const TemplateURLData& keyword_from_database = keywords.front(); 252 const TemplateURLData& keyword_from_database = keywords.front();
252 EXPECT_EQ(keyword.id, keyword_from_database.id); 253 EXPECT_EQ(keyword.id, keyword_from_database.id);
253 EXPECT_EQ(ASCIIToUTF16("bogus name"), keyword_from_database.short_name()); 254 EXPECT_EQ(ASCIIToUTF16("bogus name"), keyword_from_database.short_name());
254 RemoveKeyword(keyword.id); 255 RemoveKeyword(keyword.id);
255 } 256 }
256 } 257 }
OLDNEW
« no previous file with comments | « components/search_engines/keyword_table.cc ('k') | components/search_engines/keyword_web_data_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698