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

Side by Side Diff: tools/gn/format_test_data/062.golden

Issue 962003002: gn format: Have format sort sources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unsigned numbers in test Created 5 years, 9 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
« no previous file with comments | « tools/gn/format_test_data/062.gn ('k') | tools/gn/parse_tree.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Sorting, making sure we don't detach comments.
2
3 sources = []
4
5 sources = [
6 "x.cc",
7 ]
8
9 sources = [
10 "/a",
11 "/b",
12 "/c",
13
14 # End of block.
15 ]
16
17 sources += [
18 # Start of block, separate.
19
20 "a",
21 "b",
22 "c",
23 ]
24
25 sources += [
26 "a",
27 "y.cc",
28
29 # Attached comment.
30 "y.h",
31 "y.mm",
32 "y.rc",
33 "z",
34 "z2",
35 ]
36
37 sources += [
38 "z",
39 "z2",
40
41 # Block comment.
42
43 "a",
44 "y.cc",
45 "y.h",
46 "y.mm",
47 "y.rc",
48 ]
49
50 sources += [
51 "z",
52 "z2",
53
54 #
55 # Multiline block comment.
56 #
57
58 "a",
59 "y.cc",
60 "y.h",
61 "y.mm",
62 "y.rc",
63 ]
64
65 # With identifiers.
66 sources += [
67 "a",
68 "b",
69 "c",
70 abcd,
71 some_other_thing,
72 ]
73
74 # With accessors.
75 sources += [
76 "a",
77 "b",
78 "c",
79 invoker.stuff,
80 wee[0],
81 ]
82
83 # Various separated blocks.
84 sources -= [
85 # Fix this test to build on Windows.
86 "focus_cycler_unittest.cc",
87
88 # All tests for multiple displays: not supported on Windows Ash.
89 "wm/drag_window_resizer_unittest.cc",
90
91 # Accelerometer is only available on Chrome OS.
92 "wm/maximize_mode/maximize_mode_controller_unittest.cc",
93
94 # Can't resize on Windows Ash. http://crbug.com/165962
95 "autoclick/autoclick_unittest.cc",
96 "magnifier/magnification_controller_unittest.cc",
97 "sticky_keys/sticky_keys_overlay_unittest.cc",
98 "system/tray/media_security/multi_profile_media_tray_item_unittest.cc",
99 "virtual_keyboard_controller_unittest.cc",
100
101 # Attached 1.
102 # Attached 2.
103 "wm/workspace/workspace_window_resizer_unittest.cc",
104
105 # Separated at end.
106 "zzzzzzzzzzzzzz.cc",
107 ]
108
109 sources += [
110 "srtp/crypto/include/xfm.h",
111
112 # sources
113 "srtp/crypto/rng/prng.c",
114 "srtp/crypto/rng/rand_source.c",
115 "srtp/srtp/ekt.c",
116 "srtp/srtp/srtp.c",
117 ]
OLDNEW
« no previous file with comments | « tools/gn/format_test_data/062.gn ('k') | tools/gn/parse_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698