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_url_fetcher.h" | 5 #include "chrome/browser/printing/cloud_print/privet_url_fetcher.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "net/url_request/test_url_fetcher_factory.h" | 12 #include "net/url_request/test_url_fetcher_factory.h" |
13 #include "net/url_request/url_request_test_util.h" | 13 #include "net/url_request/url_request_test_util.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 using testing::StrictMock; | 17 using testing::StrictMock; |
18 | 18 |
19 namespace cloud_print { | 19 namespace cloud_print { |
20 | 20 |
21 namespace { | 21 namespace { |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 net::OK)); | 296 net::OK)); |
297 fetcher->set_response_code(200); | 297 fetcher->set_response_code(200); |
298 | 298 |
299 EXPECT_CALL(delegate_, OnFileInternal()); | 299 EXPECT_CALL(delegate_, OnFileInternal()); |
300 fetcher->delegate()->OnURLFetchComplete(fetcher); | 300 fetcher->delegate()->OnURLFetchComplete(fetcher); |
301 } | 301 } |
302 | 302 |
303 } // namespace | 303 } // namespace |
304 | 304 |
305 } // namespace cloud_print | 305 } // namespace cloud_print |
OLD | NEW |