| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/quic/core/quic_framer.h" | 5 #include "net/quic/core/quic_framer.h" | 
| 6 | 6 | 
| 7 #include <cstdint> | 7 #include <cstdint> | 
| 8 #include <memory> | 8 #include <memory> | 
| 9 | 9 | 
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" | 
| (...skipping 2418 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2429   if (!data_producer_->WriteStreamData(id, offset, sizeof(kCHLO), &writer)) { | 2429   if (!data_producer_->WriteStreamData(id, offset, sizeof(kCHLO), &writer)) { | 
| 2430     QUIC_BUG << "Failed to write data for stream " << id << " with offset " | 2430     QUIC_BUG << "Failed to write data for stream " << id << " with offset " | 
| 2431              << offset << " data_length = " << sizeof(kCHLO); | 2431              << offset << " data_length = " << sizeof(kCHLO); | 
| 2432     return false; | 2432     return false; | 
| 2433   } | 2433   } | 
| 2434 | 2434 | 
| 2435   return strncmp(buf, reinterpret_cast<const char*>(&kCHLO), sizeof(kCHLO)) == | 2435   return strncmp(buf, reinterpret_cast<const char*>(&kCHLO), sizeof(kCHLO)) == | 
| 2436          0; | 2436          0; | 
| 2437 } | 2437 } | 
| 2438 | 2438 | 
|  | 2439 #undef ENDPOINT | 
|  | 2440 | 
| 2439 }  // namespace net | 2441 }  // namespace net | 
| OLD | NEW | 
|---|