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_local_printer_lister.h" | 5 #include "chrome/browser/printing/cloud_print/privet_local_printer_lister.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "chrome/browser/local_discovery/test_service_discovery_client.h" | 14 #include "chrome/browser/local_discovery/test_service_discovery_client.h" |
15 #include "content/public/test/test_browser_thread_bundle.h" | 15 #include "content/public/test/test_browser_thread_bundle.h" |
16 #include "net/url_request/test_url_fetcher_factory.h" | 16 #include "net/url_request/test_url_fetcher_factory.h" |
17 #include "net/url_request/url_request_test_util.h" | 17 #include "net/url_request/url_request_test_util.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 using local_discovery::TestServiceDiscoveryClient; | 21 using local_discovery::TestServiceDiscoveryClient; |
22 | 22 |
23 using testing::StrictMock; | 23 using testing::StrictMock; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 EXPECT_CALL(delegate_, LocalPrinterChanged(true, kServiceName, false, _)); | 188 EXPECT_CALL(delegate_, LocalPrinterChanged(true, kServiceName, false, _)); |
189 | 189 |
190 EXPECT_TRUE(SuccessfulResponseToURL( | 190 EXPECT_TRUE(SuccessfulResponseToURL( |
191 GURL(kPrivetInfoURL), | 191 GURL(kPrivetInfoURL), |
192 std::string(kInfoIsNotLocalPrinter))); | 192 std::string(kInfoIsNotLocalPrinter))); |
193 } | 193 } |
194 | 194 |
195 } // namespace | 195 } // namespace |
196 | 196 |
197 } // namespace cloud_print | 197 } // namespace cloud_print |
OLD | NEW |