| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/service/cloud_print/printer_job_queue_handler.h" | 5 #include "chrome/service/cloud_print/printer_job_queue_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <set> | 9 #include <set> |
| 8 | 10 |
| 9 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
| 10 #include "base/values.h" | 12 #include "base/values.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 15 |
| 14 using ::testing::Return; | 16 using ::testing::Return; |
| 15 using ::testing::AtLeast; | 17 using ::testing::AtLeast; |
| 16 | 18 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 .WillByDefault(Return(base::Time::UnixEpoch() + | 173 .WillByDefault(Return(base::Time::UnixEpoch() + |
| 172 base::TimeDelta::FromSeconds(4) + time_to_wait)); | 174 base::TimeDelta::FromSeconds(4) + time_to_wait)); |
| 173 | 175 |
| 174 job_queue_handler.GetJobsFromQueue(GetAsDictionary(), &jobs); | 176 job_queue_handler.GetJobsFromQueue(GetAsDictionary(), &jobs); |
| 175 | 177 |
| 176 EXPECT_EQ(base::TimeDelta(), jobs[0].time_remaining_); | 178 EXPECT_EQ(base::TimeDelta(), jobs[0].time_remaining_); |
| 177 EXPECT_EQ(std::string("__testjob2"), jobs[0].job_id_); | 179 EXPECT_EQ(std::string("__testjob2"), jobs[0].job_id_); |
| 178 } | 180 } |
| 179 | 181 |
| 180 } // namespace cloud_print | 182 } // namespace cloud_print |
| OLD | NEW |