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

Side by Side Diff: tools/clang/rewrite_to_chrome_style/tests/methods-original.cc

Issue 2627003003: Add --idl-methods <filepath> parameter for skipping renaming of IDL methods. (Closed)
Patch Set: Addressed remaining CR feedback from dcheng@. 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gen/thing.h" 5 #include "gen/thing.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 8
9 class InterfaceOutsideOfBlink { 9 class InterfaceOutsideOfBlink {
10 public: 10 public:
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 299
300 namespace internal { 300 namespace internal {
301 301
302 class InternalClass { 302 class InternalClass {
303 public: 303 public:
304 static void method(); 304 static void method();
305 }; 305 };
306 306
307 } // namespace internal 307 } // namespace internal
308 308
309 // Tests for --idl-methods. See also
310 // MethodsNamedAfterIdlMatcherState::SetupBlacklistForTesting method.
311 class IdlTestClass {
312 public:
313 static int idlTestMethodNoParams(char x) { return 123; }
314 static int idlTestMethodOneParam(char x) { return 123; }
315
316 int idlTestMethodNoParams() { return 123; }
317 int idlTestMethodNoParams(int x) { return 123; }
318
319 int idlTestMethodOneParam() { return 123; }
320 int idlTestMethodOneParam(int x) { return 123; }
321
322 int idlTestMethodTwoOrThreeParams() { return 123; }
323 int idlTestMethodTwoOrThreeParams(int x, int y) { return 123; }
324 int idlTestMethodTwoOrThreeParams(int x, int y, int z) { return 123; }
325
326 int idlOptionalArgsPass(int x = 0) { return x; }
327 int idlOptionalArgsStillTooMany(int x, int y = 0) { return x + y; }
328 int idlOptionalArgsTooLittle(int x = 0) { return x; }
329
330 template <typename T>
331 int idlTemplateMethod(T x) {
332 return 123;
333 }
334
335 int path() { return 123; }
336 int path(int x) { return 123; }
337 };
338
339 template <typename T>
340 class IdlTemplateClass {
341 public:
342 int idlTestMethod(T x) { return 123; }
343 };
344
309 } // namespace blink 345 } // namespace blink
310 346
311 // https://crbug.com/640688 - need to rewrite method name below. 347 // https://crbug.com/640688 - need to rewrite method name below.
312 void blink::ClassDeclaredInsideBlink::methodDefinedOutsideBlink() {} 348 void blink::ClassDeclaredInsideBlink::methodDefinedOutsideBlink() {}
313 void blink::internal::InternalClass::method() {} 349 void blink::internal::InternalClass::method() {}
OLDNEW
« no previous file with comments | « tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc ('k') | tools/clang/rewrite_to_chrome_style/tests/run_tool.args » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698