Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
|
tyoshino (SeeGerritForStatus)
2016/03/09 05:36:20
2016
hiroshige
2016/03/11 20:36:14
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "config.h" | |
|
tyoshino (SeeGerritForStatus)
2016/03/09 05:36:21
remove
hiroshige
2016/03/11 20:36:14
Done.
| |
| 6 | |
| 7 #include "platform/network/ResourceError.h" | |
| 8 #include <ostream> | |
| 9 | |
| 10 // Pretty printer for gtest. | |
| 11 // Each corresponding declaration should be placed in the header file of | |
| 12 // the corresponding class (e.g. ResourceError.h) to avoid ODR violations, | |
| 13 // not in e.g. PlatformTestPrinters.h. See https://crbug.com/514330. | |
| 14 | |
| 15 namespace blink { | |
| 16 | |
| 17 std::ostream& operator<<(std::ostream& os, const ResourceError& error) | |
| 18 { | |
| 19 return os | |
| 20 << "domain = " << error.domain() | |
| 21 << ", errorCode = " << error.errorCode() | |
| 22 << ", failingURL = " << error.failingURL() | |
| 23 << ", localizedDescription = " << error.localizedDescription() | |
|
tyoshino (SeeGerritForStatus)
2016/03/09 05:36:21
isNull() is not included intentionally?
hiroshige
2016/03/11 20:36:14
Added.
| |
| 24 << ", isCancellation = " << error.isCancellation() | |
| 25 << ", isAccessCheck = " << error.isAccessCheck() | |
| 26 << ", isTimeout = " << error.isTimeout() | |
| 27 << ", staleCopyInCache = " << error.staleCopyInCache() | |
| 28 << ", wasIgnoredByHandler = " << error.wasIgnoredByHandler(); | |
| 29 } | |
| 30 | |
| 31 } | |
|
tyoshino (SeeGerritForStatus)
2016/03/09 05:36:21
// namespace blink
hiroshige
2016/03/11 20:36:14
Done.
| |
| OLD | NEW |