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

Side by Side Diff: Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py

Issue 648223003: Remove a few residual references to the old OVERRIDE and FINAL macros. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « Tools/Scripts/webkitpy/style/checkers/cpp.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*- coding: utf-8; -*- 1 # -*- coding: utf-8; -*-
2 # 2 #
3 # Copyright (C) 2011 Google Inc. All rights reserved. 3 # Copyright (C) 2011 Google Inc. All rights reserved.
4 # Copyright (C) 2009 Torch Mobile Inc. 4 # Copyright (C) 2009 Torch Mobile Inc.
5 # Copyright (C) 2009 Apple Inc. All rights reserved. 5 # Copyright (C) 2009 Apple Inc. All rights reserved.
6 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) 6 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
7 # 7 #
8 # Redistribution and use in source and binary forms, with or without 8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions are 9 # modification, are permitted provided that the following conditions are
10 # met: 10 # met:
(...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 self.assert_multi_line_lint( 1595 self.assert_multi_line_lint(
1596 'ACCESSOR_GETTER(MessageEventPorts) {', 1596 'ACCESSOR_GETTER(MessageEventPorts) {',
1597 'Place brace on its own line for function definitions. [whitespace/ braces] [4]') 1597 'Place brace on its own line for function definitions. [whitespace/ braces] [4]')
1598 self.assert_multi_line_lint( 1598 self.assert_multi_line_lint(
1599 'int foo() {', 1599 'int foo() {',
1600 'Place brace on its own line for function definitions. [whitespace/ braces] [4]') 1600 'Place brace on its own line for function definitions. [whitespace/ braces] [4]')
1601 self.assert_multi_line_lint( 1601 self.assert_multi_line_lint(
1602 'int foo() const {', 1602 'int foo() const {',
1603 'Place brace on its own line for function definitions. [whitespace/ braces] [4]') 1603 'Place brace on its own line for function definitions. [whitespace/ braces] [4]')
1604 self.assert_multi_line_lint( 1604 self.assert_multi_line_lint(
1605 'int foo() const OVERRIDE {',
1606 'Place brace on its own line for function definitions. [whitespace/ braces] [4]')
1607 self.assert_multi_line_lint(
1608 'int foo() OVERRIDE {',
1609 'Place brace on its own line for function definitions. [whitespace/ braces] [4]')
1610 self.assert_multi_line_lint(
1611 'int foo() override {', 1605 'int foo() override {',
1612 'Place brace on its own line for function definitions. [whitespace/ braces] [4]') 1606 'Place brace on its own line for function definitions. [whitespace/ braces] [4]')
1613 self.assert_multi_line_lint( 1607 self.assert_multi_line_lint(
1614 'int foo() FINAL {',
1615 'Place brace on its own line for function definitions. [whitespace/ braces] [4]')
1616 self.assert_multi_line_lint(
1617 'int foo() final {', 1608 'int foo() final {',
1618 'Place brace on its own line for function definitions. [whitespace/ braces] [4]') 1609 'Place brace on its own line for function definitions. [whitespace/ braces] [4]')
1619 self.assert_multi_line_lint( 1610 self.assert_multi_line_lint(
1620 'int foo() const\n' 1611 'int foo() const\n'
1621 '{\n' 1612 '{\n'
1622 '}\n', 1613 '}\n',
1623 '') 1614 '')
1624 self.assert_multi_line_lint( 1615 self.assert_multi_line_lint(
1625 'int foo() OVERRIDE\n'
1626 '{\n'
1627 '}\n',
1628 '')
1629 self.assert_multi_line_lint(
1630 'int foo() override\n' 1616 'int foo() override\n'
1631 '{\n' 1617 '{\n'
1632 '}\n', 1618 '}\n',
1633 '') 1619 '')
1634 self.assert_multi_line_lint( 1620 self.assert_multi_line_lint(
1635 'int foo() FINAL\n'
1636 '{\n'
1637 '}\n',
1638 '')
1639 self.assert_multi_line_lint(
1640 'int foo() final\n' 1621 'int foo() final\n'
1641 '{\n' 1622 '{\n'
1642 '}\n', 1623 '}\n',
1643 '') 1624 '')
1644 self.assert_multi_line_lint( 1625 self.assert_multi_line_lint(
1645 'if (condition\n' 1626 'if (condition\n'
1646 ' && condition2\n' 1627 ' && condition2\n'
1647 ' && condition3) {\n' 1628 ' && condition3) {\n'
1648 '}\n', 1629 '}\n',
1649 '') 1630 '')
(...skipping 3570 matching lines...) Expand 10 before | Expand all | Expand 10 after
5220 def test_ne(self): 5201 def test_ne(self):
5221 """Test __ne__ inequality function.""" 5202 """Test __ne__ inequality function."""
5222 checker1 = self._checker() 5203 checker1 = self._checker()
5223 checker2 = self._checker() 5204 checker2 = self._checker()
5224 5205
5225 # != calls __ne__. 5206 # != calls __ne__.
5226 # By default, __ne__ always returns true on different objects. 5207 # By default, __ne__ always returns true on different objects.
5227 # Thus, just check the distinguishing case to verify that the 5208 # Thus, just check the distinguishing case to verify that the
5228 # code defines __ne__. 5209 # code defines __ne__.
5229 self.assertFalse(checker1 != checker2) 5210 self.assertFalse(checker1 != checker2)
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/style/checkers/cpp.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698