blob: aae379fbb86d2c7eb4960100b7158a3ac920db67 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import Interop
import UIKit
import XCTest
class UniquePointerTest: XCTestCase {
func testReturnedObjectPointer() throws {
var returner = ValueReturner()
let object = returner.Object()
XCTAssertEqual(object.pointee.IsValid(), true, "")
XCTAssertEqual(object.pointee.GetValue(), 42, "")
}
}