Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: tools/clang/rewrite_to_chrome_style/tests/gmock-expected.cc

Issue 2609473002: Renaming blink method names inside gmock's EXPECT_CALL macro invocation. (Closed)
Patch Set: Make SourceFileCallbacks's constructor explicit. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #include "gmock/gmock.h"
6
7 namespace blink {
8
9 class Interface {
10 public:
11 virtual void MyMethod(int my_param) {}
12 };
13
14 class MockedInterface : public Interface {
15 public:
16 MOCK_METHOD1(MyMethod, void(int));
17 };
18
19 void Test() {
20 MockedInterface mocked_interface;
21 EXPECT_CALL(mocked_interface, MyMethod(1));
22 EXPECT_CALL(
23 mocked_interface, // A comment to prevent reformatting into single line.
24 MyMethod(1));
25 mocked_interface.MyMethod(123);
26 }
27
28 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698