OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |