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

Side by Side Diff: components/upload_list/upload_list_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 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
« no previous file with comments | « components/upload_list/upload_list.cc ('k') | components/url_formatter/elide_url.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/upload_list/upload_list.h" 5 #include "components/upload_list/upload_list.h"
6 6
7 #include <stddef.h>
8
7 #include <string> 9 #include <string>
8 10
9 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
11 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
12 #include "base/threading/sequenced_worker_pool.h" 14 #include "base/threading/sequenced_worker_pool.h"
13 #include "base/time/time.h" 15 #include "base/time/time.h"
14 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
15 17
16 namespace { 18 namespace {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 EXPECT_EQ(4u, upload_list->uploads_.size()); 187 EXPECT_EQ(4u, upload_list->uploads_.size());
186 for (size_t i = 0; i < upload_list->uploads_.size(); ++i) { 188 for (size_t i = 0; i < upload_list->uploads_.size(); ++i) {
187 time_double = upload_list->uploads_[i].upload_time.ToDoubleT(); 189 time_double = upload_list->uploads_[i].upload_time.ToDoubleT();
188 EXPECT_STREQ(kTestUploadTime, base::DoubleToString(time_double).c_str()); 190 EXPECT_STREQ(kTestUploadTime, base::DoubleToString(time_double).c_str());
189 EXPECT_STREQ(kTestUploadId, upload_list->uploads_[i].upload_id.c_str()); 191 EXPECT_STREQ(kTestUploadId, upload_list->uploads_[i].upload_id.c_str());
190 EXPECT_STREQ(kTestLocalID, upload_list->uploads_[i].local_id.c_str()); 192 EXPECT_STREQ(kTestLocalID, upload_list->uploads_[i].local_id.c_str());
191 time_double = upload_list->uploads_[i].capture_time.ToDoubleT(); 193 time_double = upload_list->uploads_[i].capture_time.ToDoubleT();
192 EXPECT_STREQ(kTestCaptureTime, base::DoubleToString(time_double).c_str()); 194 EXPECT_STREQ(kTestCaptureTime, base::DoubleToString(time_double).c_str());
193 } 195 }
194 } 196 }
OLDNEW
« no previous file with comments | « components/upload_list/upload_list.cc ('k') | components/url_formatter/elide_url.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698