| Index: tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc
|
| diff --git a/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc b/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc
|
| index 4d76c3655dbe1fff5c76772fac5fc2e0832fd19a..c45df9987fc349cbb155ecf1f5e7313f0f21e630 100644
|
| --- a/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc
|
| +++ b/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc
|
| @@ -64,6 +64,18 @@ void Task::DoTheWork() {
|
| ReallyDoTheWork();
|
| }
|
|
|
| +template <typename T>
|
| +class Testable {
|
| + public:
|
| + typedef T Testable::*UnspecifiedBoolType;
|
| + // This method has a reference to a member in a "member context" and a
|
| + // "non-member context" to verify both are rewritten.
|
| + operator UnspecifiedBoolType() { return ptr_ ? &Testable::ptr_ : 0; }
|
| +
|
| + private:
|
| + int ptr_;
|
| +};
|
| +
|
| } // namespace blink
|
|
|
| // Test that overrides from outside the Blink namespace are also updated.
|
| @@ -92,6 +104,12 @@ void F() {
|
| void (BovineTask::*p4)() = &BovineTask::ReallyDoTheWork;
|
| }
|
|
|
| +bool G() {
|
| + // Use the Testable class to rewrite the method.
|
| + blink::Testable<int> tt;
|
| + return tt;
|
| +}
|
| +
|
| namespace blink {
|
|
|
| struct StructInBlink {
|
|
|