| 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 "chrome/browser/printing/cloud_print/privet_notifications.h" | 5 #include "chrome/browser/printing/cloud_print/privet_notifications.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 11 #include "chrome/browser/printing/cloud_print/privet_http_asynchronous_factory.h
" | 12 #include "chrome/browser/printing/cloud_print/privet_http_asynchronous_factory.h
" |
| 12 #include "chrome/browser/printing/cloud_print/privet_http_impl.h" | 13 #include "chrome/browser/printing/cloud_print/privet_http_impl.h" |
| 13 #include "net/url_request/test_url_fetcher_factory.h" | 14 #include "net/url_request/test_url_fetcher_factory.h" |
| 14 #include "net/url_request/url_request_test_util.h" | 15 #include "net/url_request/url_request_test_util.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 18 |
| 18 using testing::StrictMock; | 19 using testing::StrictMock; |
| 19 | 20 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 } | 176 } |
| 176 | 177 |
| 177 TEST_F(PrivetNotificationsListenerTest, DictionaryErrorTest) { | 178 TEST_F(PrivetNotificationsListenerTest, DictionaryErrorTest) { |
| 178 notification_listener_->DeviceChanged(kExampleDeviceName, description_); | 179 notification_listener_->DeviceChanged(kExampleDeviceName, description_); |
| 179 SuccessfulResponseToInfo(kInfoResponseNoUptime); | 180 SuccessfulResponseToInfo(kInfoResponseNoUptime); |
| 180 } | 181 } |
| 181 | 182 |
| 182 } // namespace | 183 } // namespace |
| 183 | 184 |
| 184 } // namespace cloud_print | 185 } // namespace cloud_print |
| OLD | NEW |