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

Unified Diff: components/suggestions/suggestions_store_unittest.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/suggestions/suggestions_store.cc ('k') | components/sync_bookmarks/bookmark_change_processor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/suggestions/suggestions_store_unittest.cc
diff --git a/components/suggestions/suggestions_store_unittest.cc b/components/suggestions/suggestions_store_unittest.cc
index 99baedb2d60ce905d7942431231a0363cda274da..42a17c12dd664a65eebb6f3348aa4b2e5dd5a707 100644
--- a/components/suggestions/suggestions_store_unittest.cc
+++ b/components/suggestions/suggestions_store_unittest.cc
@@ -4,6 +4,9 @@
#include "components/suggestions/suggestions_store.h"
+#include <stdint.h>
+
+#include "base/macros.h"
#include "base/test/simple_test_clock.h"
#include "base/time/time.h"
#include "components/pref_registry/testing_pref_service_syncable.h"
@@ -19,8 +22,10 @@ namespace {
const char kTestTitle[] = "Foo site";
const char kTestUrl[] = "http://foo.com/";
-void AddSuggestion(SuggestionsProfile* suggestions, const char *title,
- const char *url, int64 expiry_ts) {
+void AddSuggestion(SuggestionsProfile* suggestions,
+ const char* title,
+ const char* url,
+ int64_t expiry_ts) {
ChromeSuggestion* suggestion = suggestions->add_suggestions();
suggestion->set_url(title);
suggestion->set_title(url);
@@ -39,9 +44,9 @@ SuggestionsProfile CreateTestSuggestionsProfileWithExpiry(
base::Time current_time,
int expired_count,
int valid_count) {
- int64 current_time_usec =
+ int64_t current_time_usec =
(current_time - base::Time::UnixEpoch()).ToInternalValue();
- int64 offset_usec = 5 * base::Time::kMicrosecondsPerMinute;
+ int64_t offset_usec = 5 * base::Time::kMicrosecondsPerMinute;
SuggestionsProfile suggestions;
for (int i = 1; i <= valid_count; i++)
« no previous file with comments | « components/suggestions/suggestions_store.cc ('k') | components/sync_bookmarks/bookmark_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698