| Index: tools/clang/plugins/tests/weak_ptr_factory.cpp
|
| diff --git a/tools/clang/plugins/tests/weak_ptr_factory.cpp b/tools/clang/plugins/tests/weak_ptr_factory.cpp
|
| index 79c23b473880170a6297ba538a1756383f43a845..50de97c028f0fd8bfffac95e287aa4702df38035 100644
|
| --- a/tools/clang/plugins/tests/weak_ptr_factory.cpp
|
| +++ b/tools/clang/plugins/tests/weak_ptr_factory.cpp
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #include "weak_ptr_factory.h"
|
| +
|
| namespace should_succeed {
|
|
|
| class OnlyMember {
|
| @@ -27,6 +28,13 @@ class FirstFactoryRefersToOtherType {
|
| base::WeakPtrFactory<FirstFactoryRefersToOtherType> factory_;
|
| };
|
|
|
| +class TwoFactories {
|
| + bool bool_member_;
|
| + int int_member_;
|
| + base::WeakPtrFactory<TwoFactories> factory1_;
|
| + base::WeakPtrFactory<TwoFactories> factory2_;
|
| +};
|
| +
|
| } // namespace should_succeed
|
|
|
| namespace should_fail {
|
| @@ -42,6 +50,13 @@ class FactoryMiddle {
|
| int int_member_;
|
| };
|
|
|
| +class TwoFactoriesOneBad {
|
| + bool bool_member_;
|
| + base::WeakPtrFactory<TwoFactoriesOneBad> factory1_;
|
| + int int_member_;
|
| + base::WeakPtrFactory<TwoFactoriesOneBad> factory2_;
|
| +};
|
| +
|
| } // namespace should_fail
|
|
|
| int main() {
|
|
|