|
|
@@ -15,7 +15,7 @@ import SwiftProtobufPluginLibrary
|
|
|
final class Test_Descriptor: XCTestCase {
|
|
|
|
|
|
func testParsing() throws {
|
|
|
- let fileSet = try Google_Protobuf_FileDescriptorSet(serializedData: fileDescriptorSetData)
|
|
|
+ let fileSet = try Google_Protobuf_FileDescriptorSet(serializedBytes: fileDescriptorSetBytes)
|
|
|
|
|
|
let descriptorSet = DescriptorSet(proto: fileSet)
|
|
|
XCTAssertEqual(descriptorSet.files.count, 5)
|
|
|
@@ -77,7 +77,7 @@ final class Test_Descriptor: XCTestCase {
|
|
|
}
|
|
|
|
|
|
func testLookup() throws {
|
|
|
- let fileSet = try Google_Protobuf_FileDescriptorSet(serializedData: fileDescriptorSetData)
|
|
|
+ let fileSet = try Google_Protobuf_FileDescriptorSet(serializedBytes: fileDescriptorSetBytes)
|
|
|
|
|
|
let descriptorSet = DescriptorSet(proto: fileSet)
|
|
|
|
|
|
@@ -95,7 +95,7 @@ final class Test_Descriptor: XCTestCase {
|
|
|
}
|
|
|
|
|
|
func testParents() throws {
|
|
|
- let fileSet = try Google_Protobuf_FileDescriptorSet(serializedData: fileDescriptorSetData)
|
|
|
+ let fileSet = try Google_Protobuf_FileDescriptorSet(serializedBytes: fileDescriptorSetBytes)
|
|
|
|
|
|
let descriptorSet = DescriptorSet(proto: fileSet)
|
|
|
|
|
|
@@ -131,7 +131,7 @@ final class Test_Descriptor: XCTestCase {
|
|
|
}
|
|
|
|
|
|
func testFields() throws {
|
|
|
- let fileSet = try Google_Protobuf_FileDescriptorSet(serializedData: fileDescriptorSetData)
|
|
|
+ let fileSet = try Google_Protobuf_FileDescriptorSet(serializedBytes: fileDescriptorSetBytes)
|
|
|
|
|
|
let descriptorSet = DescriptorSet(proto: fileSet)
|
|
|
|
|
|
@@ -307,7 +307,7 @@ final class Test_Descriptor: XCTestCase {
|
|
|
// Extensions are a little different in how they have extensionScope and
|
|
|
// containingType, so they are split out to be a clear test of their behaviors.
|
|
|
|
|
|
- let fileSet = try Google_Protobuf_FileDescriptorSet(serializedData: fileDescriptorSetData)
|
|
|
+ let fileSet = try Google_Protobuf_FileDescriptorSet(serializedBytes: fileDescriptorSetBytes)
|
|
|
|
|
|
let descriptorSet = DescriptorSet(proto: fileSet)
|
|
|
|