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

Unified Diff: content/browser/indexed_db/indexed_db_transaction_unittest.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
Index: content/browser/indexed_db/indexed_db_transaction_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_transaction_unittest.cc b/content/browser/indexed_db/indexed_db_transaction_unittest.cc
index e033dd79e64a9daf5b35e75d6e1d4981cc9ca3e2..984296807fe1c34c2289eb746577433956012ca8 100644
--- a/content/browser/indexed_db/indexed_db_transaction_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_transaction_unittest.cc
@@ -4,8 +4,11 @@
#include "content/browser/indexed_db/indexed_db_transaction.h"
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "content/browser/indexed_db/indexed_db_fake_backing_store.h"
@@ -79,8 +82,8 @@ class IndexedDBTransactionTestMode
};
TEST_F(IndexedDBTransactionTest, Timeout) {
- const int64 id = 0;
- const std::set<int64> scope;
+ const int64_t id = 0;
+ const std::set<int64_t> scope;
const leveldb::Status commit_success = leveldb::Status::OK();
scoped_refptr<IndexedDBTransaction> transaction = new IndexedDBTransaction(
id,
@@ -123,8 +126,8 @@ TEST_F(IndexedDBTransactionTest, Timeout) {
}
TEST_F(IndexedDBTransactionTest, NoTimeoutReadOnly) {
- const int64 id = 0;
- const std::set<int64> scope;
+ const int64_t id = 0;
+ const std::set<int64_t> scope;
const leveldb::Status commit_success = leveldb::Status::OK();
scoped_refptr<IndexedDBTransaction> transaction = new IndexedDBTransaction(
id,
@@ -155,8 +158,8 @@ TEST_F(IndexedDBTransactionTest, NoTimeoutReadOnly) {
}
TEST_P(IndexedDBTransactionTestMode, ScheduleNormalTask) {
- const int64 id = 0;
- const std::set<int64> scope;
+ const int64_t id = 0;
+ const std::set<int64_t> scope;
const leveldb::Status commit_success = leveldb::Status::OK();
scoped_refptr<IndexedDBTransaction> transaction = new IndexedDBTransaction(
id,
@@ -217,8 +220,8 @@ TEST_P(IndexedDBTransactionTestMode, ScheduleNormalTask) {
}
TEST_F(IndexedDBTransactionTest, SchedulePreemptiveTask) {
- const int64 id = 0;
- const std::set<int64> scope;
+ const int64_t id = 0;
+ const std::set<int64_t> scope;
const leveldb::Status commit_failure = leveldb::Status::Corruption("Ouch.");
scoped_refptr<IndexedDBTransaction> transaction = new IndexedDBTransaction(
id,
@@ -278,8 +281,8 @@ TEST_F(IndexedDBTransactionTest, SchedulePreemptiveTask) {
}
TEST_P(IndexedDBTransactionTestMode, AbortTasks) {
- const int64 id = 0;
- const std::set<int64> scope;
+ const int64_t id = 0;
+ const std::set<int64_t> scope;
const leveldb::Status commit_failure = leveldb::Status::Corruption("Ouch.");
scoped_refptr<IndexedDBTransaction> transaction = new IndexedDBTransaction(
id,
@@ -308,8 +311,8 @@ TEST_P(IndexedDBTransactionTestMode, AbortTasks) {
}
TEST_P(IndexedDBTransactionTestMode, AbortPreemptive) {
- const int64 id = 0;
- const std::set<int64> scope;
+ const int64_t id = 0;
+ const std::set<int64_t> scope;
const leveldb::Status commit_success = leveldb::Status::OK();
scoped_refptr<IndexedDBTransaction> transaction = new IndexedDBTransaction(
id,
« no previous file with comments | « content/browser/indexed_db/indexed_db_transaction_coordinator.cc ('k') | content/browser/indexed_db/indexed_db_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698