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

Side by Side Diff: chrome/browser/history/android/android_history_provider_service_unittest.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 "chrome/browser/history/android/android_history_provider_service.h" 5 #include "chrome/browser/history/android/android_history_provider_service.h"
6 6
7 #include <stdint.h>
8
9 #include "base/macros.h"
7 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
8 #include "base/task/cancelable_task_tracker.h" 11 #include "base/task/cancelable_task_tracker.h"
9 #include "base/time/time.h" 12 #include "base/time/time.h"
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 13 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
11 #include "chrome/common/chrome_constants.h" 14 #include "chrome/common/chrome_constants.h"
12 #include "chrome/test/base/testing_browser_process.h" 15 #include "chrome/test/base/testing_browser_process.h"
13 #include "chrome/test/base/testing_profile.h" 16 #include "chrome/test/base/testing_profile.h"
14 #include "chrome/test/base/testing_profile_manager.h" 17 #include "chrome/test/base/testing_profile_manager.h"
15 #include "components/bookmarks/test/bookmark_test_helpers.h" 18 #include "components/bookmarks/test/bookmark_test_helpers.h"
16 #include "components/history/core/browser/android/android_history_types.h" 19 #include "components/history/core/browser/android/android_history_types.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 100 }
98 101
99 int cursor_position() const { 102 int cursor_position() const {
100 return cursor_position_; 103 return cursor_position_;
101 } 104 }
102 105
103 int count() const { 106 int count() const {
104 return count_; 107 return count_;
105 } 108 }
106 109
107 void OnInserted(int64 id) { 110 void OnInserted(int64_t id) {
108 success_ = id != 0; 111 success_ = id != 0;
109 base::MessageLoop::current()->QuitWhenIdle(); 112 base::MessageLoop::current()->QuitWhenIdle();
110 } 113 }
111 114
112 void OnQueryResult(AndroidStatement* statement) { 115 void OnQueryResult(AndroidStatement* statement) {
113 success_ = statement != NULL; 116 success_ = statement != NULL;
114 statement_ = statement; 117 statement_ = statement;
115 base::MessageLoop::current()->QuitWhenIdle(); 118 base::MessageLoop::current()->QuitWhenIdle();
116 } 119 }
117 120
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 service_->DeleteSearchTerms(std::string(), 279 service_->DeleteSearchTerms(std::string(),
277 std::vector<base::string16>(), 280 std::vector<base::string16>(),
278 Bind(&CallbackHelper::OnDeleted, callback.get()), 281 Bind(&CallbackHelper::OnDeleted, callback.get()),
279 &cancelable_tracker_); 282 &cancelable_tracker_);
280 base::MessageLoop::current()->Run(); 283 base::MessageLoop::current()->Run();
281 EXPECT_TRUE(callback->success()); 284 EXPECT_TRUE(callback->success());
282 EXPECT_EQ(1, callback->count()); 285 EXPECT_EQ(1, callback->count());
283 } 286 }
284 287
285 } // namespace 288 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698