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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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') | public/web/WebLeakDetector.h » ('j') | 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 4903 matching lines...) Expand 10 before | Expand all | Expand 10 after
4914 self.assert_lint('size_t l;', 'l' + name_tooshort_error_message) 4914 self.assert_lint('size_t l;', 'l' + name_tooshort_error_message)
4915 self.assert_lint('long long l;', 'l' + name_tooshort_error_message) 4915 self.assert_lint('long long l;', 'l' + name_tooshort_error_message)
4916 4916
4917 # Pointers, references, functions, templates, and adjectives. 4917 # Pointers, references, functions, templates, and adjectives.
4918 self.assert_lint('char* under_score;', 4918 self.assert_lint('char* under_score;',
4919 'under_score' + name_underscore_error_message) 4919 'under_score' + name_underscore_error_message)
4920 self.assert_lint('const int UNDER_SCORE;', 4920 self.assert_lint('const int UNDER_SCORE;',
4921 'UNDER_SCORE' + name_underscore_error_message) 4921 'UNDER_SCORE' + name_underscore_error_message)
4922 self.assert_lint('static inline const char const& const under_score;', 4922 self.assert_lint('static inline const char const& const under_score;',
4923 'under_score' + name_underscore_error_message) 4923 'under_score' + name_underscore_error_message)
4924 self.assert_lint('WebCore::RenderObject* under_score;', 4924 self.assert_lint('WebCore::LayoutObject* under_score;',
4925 'under_score' + name_underscore_error_message) 4925 'under_score' + name_underscore_error_message)
4926 self.assert_lint('int func_name();', 4926 self.assert_lint('int func_name();',
4927 'func_name' + name_underscore_error_message) 4927 'func_name' + name_underscore_error_message)
4928 self.assert_lint('RefPtr<RenderObject*> under_score;', 4928 self.assert_lint('RefPtr<LayoutObject*> under_score;',
4929 'under_score' + name_underscore_error_message) 4929 'under_score' + name_underscore_error_message)
4930 self.assert_lint('WTF::Vector<WTF::RefPtr<const RenderObject* const>> un der_score;', 4930 self.assert_lint('WTF::Vector<WTF::RefPtr<const LayoutObject* const>> un der_score;',
4931 'under_score' + name_underscore_error_message) 4931 'under_score' + name_underscore_error_message)
4932 self.assert_lint('int under_score[];', 4932 self.assert_lint('int under_score[];',
4933 'under_score' + name_underscore_error_message) 4933 'under_score' + name_underscore_error_message)
4934 self.assert_lint('struct dirent* under_score;', 4934 self.assert_lint('struct dirent* under_score;',
4935 'under_score' + name_underscore_error_message) 4935 'under_score' + name_underscore_error_message)
4936 self.assert_lint('long under_score;', 4936 self.assert_lint('long under_score;',
4937 'under_score' + name_underscore_error_message) 4937 'under_score' + name_underscore_error_message)
4938 self.assert_lint('long long under_score;', 4938 self.assert_lint('long long under_score;',
4939 'under_score' + name_underscore_error_message) 4939 'under_score' + name_underscore_error_message)
4940 self.assert_lint('long double under_score;', 4940 self.assert_lint('long double under_score;',
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
5207 def test_ne(self): 5207 def test_ne(self):
5208 """Test __ne__ inequality function.""" 5208 """Test __ne__ inequality function."""
5209 checker1 = self._checker() 5209 checker1 = self._checker()
5210 checker2 = self._checker() 5210 checker2 = self._checker()
5211 5211
5212 # != calls __ne__. 5212 # != calls __ne__.
5213 # By default, __ne__ always returns true on different objects. 5213 # By default, __ne__ always returns true on different objects.
5214 # Thus, just check the distinguishing case to verify that the 5214 # Thus, just check the distinguishing case to verify that the
5215 # code defines __ne__. 5215 # code defines __ne__.
5216 self.assertFalse(checker1 != checker2) 5216 self.assertFalse(checker1 != checker2)
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/style/checkers/cpp.py ('k') | public/web/WebLeakDetector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698