• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 The V8 Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // This file is V8 specific. It's not rolled from the upstream project.
6 
7 #ifndef V8_INSPECTOR_PROTOCOL_CRDTP_TEST_PLATFORM_H_
8 #define V8_INSPECTOR_PROTOCOL_CRDTP_TEST_PLATFORM_H_
9 
10 #include <string>
11 #include <vector>
12 
13 #include "span.h"
14 #include "src/base/logging.h"
15 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h"
17 
18 namespace v8_crdtp {
19 
20 std::string UTF16ToUTF8(span<uint16_t> in);
21 
22 std::vector<uint16_t> UTF8ToUTF16(span<uint8_t> in);
23 
24 }  // namespace v8_crdtp
25 
26 #endif  // V8_INSPECTOR_PROTOCOL_CRDTP_TEST_PLATFORM_H_
27