| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
| 7 #include "chrome/browser/local_discovery/privet_http_impl.h" | 7 #include "chrome/browser/local_discovery/privet_http_impl.h" |
| 8 #include "net/base/host_port_pair.h" | 8 #include "net/base/host_port_pair.h" |
| 9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
| 10 #include "net/url_request/test_url_fetcher_factory.h" | 10 #include "net/url_request/test_url_fetcher_factory.h" |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 347 |
| 348 MOCK_METHOD2(OnPrivetRegisterClaimTokenInternal, void( | 348 MOCK_METHOD2(OnPrivetRegisterClaimTokenInternal, void( |
| 349 const std::string& token, | 349 const std::string& token, |
| 350 const GURL& url)); | 350 const GURL& url)); |
| 351 | 351 |
| 352 virtual void OnPrivetRegisterError( | 352 virtual void OnPrivetRegisterError( |
| 353 PrivetRegisterOperation* operation, | 353 PrivetRegisterOperation* operation, |
| 354 const std::string& action, | 354 const std::string& action, |
| 355 PrivetRegisterOperation::FailureReason reason, | 355 PrivetRegisterOperation::FailureReason reason, |
| 356 int printer_http_code, | 356 int printer_http_code, |
| 357 const DictionaryValue* json) OVERRIDE { | 357 const base::DictionaryValue* json) OVERRIDE { |
| 358 // TODO(noamsml): Save and test for JSON? | 358 // TODO(noamsml): Save and test for JSON? |
| 359 OnPrivetRegisterErrorInternal(action, reason, printer_http_code); | 359 OnPrivetRegisterErrorInternal(action, reason, printer_http_code); |
| 360 } | 360 } |
| 361 | 361 |
| 362 MOCK_METHOD3(OnPrivetRegisterErrorInternal, | 362 MOCK_METHOD3(OnPrivetRegisterErrorInternal, |
| 363 void(const std::string& action, | 363 void(const std::string& action, |
| 364 PrivetRegisterOperation::FailureReason reason, | 364 PrivetRegisterOperation::FailureReason reason, |
| 365 int printer_http_code)); | 365 int printer_http_code)); |
| 366 | 366 |
| 367 virtual void OnPrivetRegisterDone( | 367 virtual void OnPrivetRegisterDone( |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 | 981 |
| 982 EXPECT_TRUE(SuccessfulResponseToURL( | 982 EXPECT_TRUE(SuccessfulResponseToURL( |
| 983 GURL("http://10.0.0.8:6006/privet/printer/createjob"), | 983 GURL("http://10.0.0.8:6006/privet/printer/createjob"), |
| 984 kSampleCreatejobResponse)); | 984 kSampleCreatejobResponse)); |
| 985 }; | 985 }; |
| 986 | 986 |
| 987 | 987 |
| 988 } // namespace | 988 } // namespace |
| 989 | 989 |
| 990 } // namespace local_discovery | 990 } // namespace local_discovery |
| OLD | NEW |