+ Simple |
+
+ Old |
+ MOCK_METHOD1(Foo, bool(int)) |
+
+
+ New |
+ MOCK_METHOD(bool, Foo, (int)) |
+
- Const Method |
Old |
-`MOCK_CONST_METHOD1(Foo, bool(int))` |
New |
-`MOCK_METHOD(bool, Foo, (int), (const))` |
+ Const Method |
+
+ Old |
+ MOCK_CONST_METHOD1(Foo, bool(int)) |
+
+
+ New |
+ MOCK_METHOD(bool, Foo, (int), (const)) |
+
- Method in a Class Template |
Old |
- `MOCK_METHOD1_T(Foo, bool(int))` |
New |
-`MOCK_METHOD(bool, Foo, (int))` |
+ Method in a Class Template |
+
+ Old |
+ MOCK_METHOD1_T(Foo, bool(int)) |
+
+
+ New |
+ MOCK_METHOD(bool, Foo, (int)) |
+
- Const Method in a Class Template |
Old
- | `MOCK_CONST_METHOD1_T(Foo, bool(int))` |
New
- | `MOCK_METHOD(bool, Foo, (int), (const))` |
+ Const Method in a Class Template |
+
+ Old |
+ MOCK_CONST_METHOD1_T(Foo, bool(int)) |
+
+
+ New |
+ MOCK_METHOD(bool, Foo, (int), (const)) |
+
- Method with Call Type |
Old |
-`MOCK_METHOD1_WITH_CALLTYPE(STDMETHODCALLTYPE, Foo, bool(int))` |
- New | `MOCK_METHOD(bool, Foo, (int),
-(Calltype(STDMETHODCALLTYPE)))` |
+ Method with Call Type |
+
+ Old |
+ MOCK_METHOD1_WITH_CALLTYPE(STDMETHODCALLTYPE, Foo, bool(int)) |
+
+
+ New |
+ MOCK_METHOD(bool, Foo, (int), (Calltype(STDMETHODCALLTYPE))) |
+
- Const Method with Call Type |
Old |
- `MOCK_CONST_METHOD1_WITH_CALLTYPE(STDMETHODCALLTYPE, Foo, bool(int))` |
-
New | `MOCK_METHOD(bool, Foo, (int), (const,
-Calltype(STDMETHODCALLTYPE)))` |
+ Const Method with Call Type |
+
+ Old |
+ MOCK_CONST_METHOD1_WITH_CALLTYPE(STDMETHODCALLTYPE, Foo, bool(int)) |
+
+
+ New |
+ MOCK_METHOD(bool, Foo, (int), (const, Calltype(STDMETHODCALLTYPE))) |
+
- Method with Call Type in a Class Template |
- Old | `MOCK_METHOD1_T_WITH_CALLTYPE(STDMETHODCALLTYPE, Foo,
-bool(int))` |
New | `MOCK_METHOD(bool, Foo, (int),
-(Calltype(STDMETHODCALLTYPE)))` |
-
- Const Method with Call Type in a Class Template |
- Old | `MOCK_CONST_METHOD1_T_WITH_CALLTYPE(STDMETHODCALLTYPE,
-Foo, bool(int))` |
New | `MOCK_METHOD(bool, Foo,
-(int), (const, Calltype(STDMETHODCALLTYPE)))` |
+ Method with Call Type in a Class Template |
+
+ Old |
+ MOCK_METHOD1_T_WITH_CALLTYPE(STDMETHODCALLTYPE, Foo, bool(int)) |
+
+
+ New |
+ MOCK_METHOD(bool, Foo, (int), (Calltype(STDMETHODCALLTYPE))) |
+
+ Const Method with Call Type in a Class Template |
+
+ Old |
+ MOCK_CONST_METHOD1_T_WITH_CALLTYPE(STDMETHODCALLTYPE, Foo, bool(int)) |
+
+
+ New |
+ MOCK_METHOD(bool, Foo, (int), (const, Calltype(STDMETHODCALLTYPE))) |
+
### The Nice, the Strict, and the Naggy {#NiceStrictNaggy}
@@ -4081,23 +4123,20 @@ If you are writing a function that returns an `ACTION` object, you'll need to
know its type. The type depends on the macro used to define the action and the
parameter types. The rule is relatively simple:
+
+
| Given Definition | Expression | Has Type |
| ----------------------------- | ------------------- | --------------------- |
| `ACTION(Foo)` | `Foo()` | `FooAction` |
-| `ACTION_TEMPLATE(Foo,` | `Foo