Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / base / test / opaque_ref_counted.h
blobfaf6a650fd6069135d77bb4a9f827295bd81afa3
1 // Copyright 2014 The Chromium 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.
5 #ifndef BASE_TEST_OPAQUE_REF_COUNTED_H_
6 #define BASE_TEST_OPAQUE_REF_COUNTED_H_
8 #include "base/memory/ref_counted.h"
10 namespace base {
12 // OpaqueRefCounted is a test class for scoped_refptr to ensure it still works
13 // when the pointed-to type is opaque (i.e., incomplete).
14 class OpaqueRefCounted;
16 // Test functions that return and accept scoped_refptr<OpaqueRefCounted> values.
17 scoped_refptr<OpaqueRefCounted> MakeOpaqueRefCounted();
18 void TestOpaqueRefCounted(scoped_refptr<OpaqueRefCounted> p);
20 } // namespace base
22 extern template class scoped_refptr<base::OpaqueRefCounted>;
24 #endif // BASE_TEST_OPAQUE_REF_COUNTED_H_