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

Side by Side Diff: chrome/browser/chromeos/login/report_restarting_flags_unittest.cc

Issue 344883002: Collect UMA statistics on which chrome://flags lead to chrome restart on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 2014 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 "chrome/browser/chromeos/login/report_restarting_flags.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 namespace chromeos {
10
11 TEST(ReportRestartingFlags, FlagsTableValid) {
12 size_t table_size;
13 const char* const* table =
14 GetChromeRestartHistogramSwitchesForTesting(&table_size);
15 EXPECT_EQ(226U, table_size);
16
17 // UMA ID must never be changed.
18 // If flag is removed, dummy value should be inserted instead.
19 EXPECT_STREQ("", table[0]);
20 EXPECT_STREQ("", table[1]);
21 EXPECT_STREQ("", table[2]);
22 EXPECT_STREQ("", table[3]);
23 EXPECT_STREQ("", table[4]);
24 EXPECT_STREQ("overscroll-history-navigation", table[5]);
25 EXPECT_STREQ("enable-service-worker-sync", table[6]);
26 EXPECT_STREQ("no-pings", table[7]);
27 EXPECT_STREQ("no-experiments", table[8]);
28 EXPECT_STREQ("enable-one-copy", table[9]);
29 EXPECT_STREQ("disable-gesture-tap-highlight", table[10]);
30 EXPECT_STREQ("file-manager-enable-new-gallery", table[11]);
31 EXPECT_STREQ("enable-quic-https", table[12]);
32 EXPECT_STREQ("enable-network-portal-notification", table[13]);
33 EXPECT_STREQ("enable-fixed-position-compositing", table[14]);
34 EXPECT_STREQ("enable-virtual-keyboard-overscroll", table[15]);
35 EXPECT_STREQ("allow-insecure-websocket-from-https-origin", table[16]);
36 EXPECT_STREQ("enable-web-based-signin", table[17]);
37 EXPECT_STREQ("show-fps-counter", table[18]);
38 EXPECT_STREQ("enable-offline-auto-reload", table[19]);
39 EXPECT_STREQ("enable-filemanager-mtp", table[20]);
40 EXPECT_STREQ("enable-panels", table[21]);
41 EXPECT_STREQ("enable-scripts-require-action", table[22]);
42 EXPECT_STREQ("enable-smooth-scrolling", table[23]);
43 EXPECT_STREQ("disable-delegated-renderer", table[24]);
44 EXPECT_STREQ("disabled", table[25]);
45 EXPECT_STREQ("malware-interstitial-v2", table[26]);
46 EXPECT_STREQ("disable-touch-editing", table[27]);
47 EXPECT_STREQ("prefetch-search-results", table[28]);
48 EXPECT_STREQ("disable-password-manager-reauthentication", table[29]);
49 EXPECT_STREQ("enable-search-button-in-omnibox-always", table[30]);
50 EXPECT_STREQ("disable-webaudio", table[31]);
51 EXPECT_STREQ("default-tile-height", table[32]);
52 EXPECT_STREQ("enable-session-crashed-bubble", table[33]);
53 EXPECT_STREQ("disable-quickoffice-component-app", table[34]);
54 EXPECT_STREQ("debug-packed-apps", table[35]);
55 EXPECT_STREQ("enable-suggestions-service", table[36]);
56 EXPECT_STREQ("tab-capture-downscale-quality", table[37]);
57 EXPECT_STREQ("manual-enhanced-bookmarks-optout", table[38]);
58 EXPECT_STREQ("disable-accelerated-fixed-root-background", table[39]);
59 EXPECT_STREQ("ash-touch-hud", table[40]);
60 EXPECT_STREQ("disable-device-enumeration", table[41]);
61 EXPECT_STREQ("disable-pinch-virtual-viewport", table[42]);
62 EXPECT_STREQ("enable-deferred-image-decoding", table[43]);
63 EXPECT_STREQ("disable-input-view", table[44]);
64 EXPECT_STREQ("disable-device-discovery-notifications", table[45]);
65 EXPECT_STREQ("enable-password-generation", table[46]);
66 EXPECT_STREQ("manual-enhanced-bookmarks", table[47]);
67 EXPECT_STREQ("extension-content-verification", table[48]);
68 EXPECT_STREQ("enable-ephemeral-apps", table[49]);
69 EXPECT_STREQ("enable-quic", table[50]);
70 EXPECT_STREQ("enable-first-run-ui-transitions", table[51]);
71 EXPECT_STREQ("enable-search-button-in-omnibox-for-str", table[52]);
72 EXPECT_STREQ("enable-distance-field-text", table[53]);
73 EXPECT_STREQ("disable-text-input-focus-manager", table[54]);
74 EXPECT_STREQ("touch-scrolling-mode", table[55]);
75 EXPECT_STREQ("disable-overlay-scrollbar", table[56]);
76 EXPECT_STREQ("max-tiles-for-interest-area", table[57]);
77 EXPECT_STREQ("force-gpu-rasterization", table[58]);
78 EXPECT_STREQ("allow-nacl-socket-api", table[59]);
79 EXPECT_STREQ("enable-request-tablet-site", table[60]);
80 EXPECT_STREQ("enforce_strict", table[61]);
81 EXPECT_STREQ("disable-software-rasterizer", table[62]);
82 EXPECT_STREQ("enable-apps-file-associations", table[63]);
83 EXPECT_STREQ("ssl-interstitial-v2-gray", table[64]);
84 EXPECT_STREQ("show-autofill-type-predictions", table[65]);
85 EXPECT_STREQ("enable-viewport-meta", table[66]);
86 EXPECT_STREQ("silent-debugger-extension-api", table[67]);
87 EXPECT_STREQ("disable-gpu-rasterization", table[68]);
88 EXPECT_STREQ("flag-switches-begin", table[69]);
89 EXPECT_STREQ("disable-offline-load-stale-cache", table[70]);
90 EXPECT_STREQ("enable-virtual-keyboard", table[71]);
91 EXPECT_STREQ("disable-threaded-compositing", table[72]);
92 EXPECT_STREQ("enable-gpu-rasterization", table[73]);
93 EXPECT_STREQ("disable-settings-window", table[74]);
94 EXPECT_STREQ("enable-delegated-renderer", table[75]);
95 EXPECT_STREQ("enable-scroll-prediction", table[76]);
96 EXPECT_STREQ("enable-accelerated-overflow-scroll", table[77]);
97 EXPECT_STREQ("disable-fixed-position-compositing", table[78]);
98 EXPECT_STREQ("disable-webrtc-hw-encoding", table[79]);
99 EXPECT_STREQ("enable-search-button-in-omnibox-for-str-or-iip", table[80]);
100 EXPECT_STREQ("enable-bleeding-edge-rendering-fast-paths", table[81]);
101 EXPECT_STREQ("disable-save-password-bubble", table[82]);
102 EXPECT_STREQ("enable-settings-window", table[83]);
103 EXPECT_STREQ("disable-device-discovery", table[84]);
104 EXPECT_STREQ("disable-zero-copy", table[85]);
105 EXPECT_STREQ("enable-nacl-debug", table[86]);
106 EXPECT_STREQ("enable-save-password-bubble", table[87]);
107 EXPECT_STREQ("disable-prefixed-encrypted-media", table[88]);
108 EXPECT_STREQ("default-tile-width", table[89]);
109 EXPECT_STREQ("disable-embedded-shared-worker", table[90]);
110 EXPECT_STREQ("disable-session-crashed-bubble", table[91]);
111 EXPECT_STREQ("enable-device-discovery-notifications", table[92]);
112 EXPECT_STREQ("enable-carrier-switching", table[93]);
113 EXPECT_STREQ("enable-offline-load-stale-cache", table[94]);
114 EXPECT_STREQ("enable-answers-in-suggest", table[95]);
115 EXPECT_STREQ("enable-app-list", table[96]);
116 EXPECT_STREQ("enable-pinch-virtual-viewport", table[97]);
117 EXPECT_STREQ("disable-offline-auto-reload", table[98]);
118 EXPECT_STREQ("enable-fast-text-autosizing", table[99]);
119 EXPECT_STREQ("enable-print-preview-register-promos", table[100]);
120 EXPECT_STREQ("enable-threaded-compositing", table[101]);
121 EXPECT_STREQ("enable-permissions-bubbles", table[102]);
122 EXPECT_STREQ("enable-easy-unlock", table[103]);
123 EXPECT_STREQ("disable-saml-signin", table[104]);
124 EXPECT_STREQ("do-not-ignore-autocomplete-off", table[105]);
125 EXPECT_STREQ("disable-views-rect-based-targeting", table[106]);
126 EXPECT_STREQ("performance-monitor-gathering", table[107]);
127 EXPECT_STREQ("show-composited-layer-borders", table[108]);
128 EXPECT_STREQ("enable-input-view", table[109]);
129 EXPECT_STREQ("wallet-service-use-sandbox", table[110]);
130 EXPECT_STREQ("policy-switches-begin", table[111]);
131 EXPECT_STREQ("enable-overlay-scrollbar", table[112]);
132 EXPECT_STREQ("enable-account-consistency", table[113]);
133 EXPECT_STREQ("disable-media-source", table[114]);
134 EXPECT_STREQ("enable-service-worker", table[115]);
135 EXPECT_STREQ("enable-touch-editing", table[116]);
136 EXPECT_STREQ("enable-translate-new-ux", table[117]);
137 EXPECT_STREQ("force-device-scale-factor", table[118]);
138 EXPECT_STREQ("ash-debug-shortcuts", table[119]);
139 EXPECT_STREQ("disable-accelerated-2d-canvas", table[120]);
140 EXPECT_STREQ("disable-suggestions-service", table[121]);
141 EXPECT_STREQ("num-raster-threads", table[122]);
142 EXPECT_STREQ("enable-automatic-password-saving", table[123]);
143 EXPECT_STREQ("enable-app-window-controls", table[124]);
144 EXPECT_STREQ("disable-quic", table[125]);
145 EXPECT_STREQ("disable-origin-chip", table[126]);
146 EXPECT_STREQ("malware-interstitial-v3", table[127]);
147 EXPECT_STREQ("touch-events", table[128]);
148 EXPECT_STREQ("enable-experimental-input-view-features", table[129]);
149 EXPECT_STREQ("disable-virtual-keyboard-overscroll", table[130]);
150 EXPECT_STREQ("enable-async-dns", table[131]);
151 EXPECT_STREQ("google-profile-info", table[132]);
152 EXPECT_STREQ("enable-experimental-web-platform-features", table[133]);
153 EXPECT_STREQ("enable-spelling-auto-correct", table[134]);
154 EXPECT_STREQ("enable-web-midi", table[135]);
155 EXPECT_STREQ("enable-nacl", table[136]);
156 EXPECT_STREQ("out-of-process-pdf", table[137]);
157 EXPECT_STREQ("disable-touch-adjustment", table[138]);
158 EXPECT_STREQ("enable-prominent-url-app-flow", table[139]);
159 EXPECT_STREQ("enable-harfbuzz-rendertext", table[140]);
160 EXPECT_STREQ("enable-origin-chip-always", table[141]);
161 EXPECT_STREQ("disable-distance-field-text", table[142]);
162 EXPECT_STREQ("enable-text-input-focus-manager", table[143]);
163 EXPECT_STREQ("fast-user-switching", table[144]);
164 EXPECT_STREQ("enable-encrypted-media", table[145]);
165 EXPECT_STREQ("disable-quic-https", table[146]);
166 EXPECT_STREQ("ssl-interstitial-v1", table[147]);
167 EXPECT_STREQ("enable-spdy4", table[148]);
168 EXPECT_STREQ("disable-permissions-bubbles", table[149]);
169 EXPECT_STREQ("new-avatar-menu", table[150]);
170 EXPECT_STREQ("enable-high-dpi-fixed-position-compositing", table[151]);
171 EXPECT_STREQ("enable-touch-drag-drop", table[152]);
172 EXPECT_STREQ("disable-lcd-text", table[153]);
173 EXPECT_STREQ("enable-transition-compositing", table[154]);
174 EXPECT_STREQ("enable-impl-side-painting", table[155]);
175 EXPECT_STREQ("ignore-gpu-blacklist", table[156]);
176 EXPECT_STREQ("enabled", table[157]);
177 EXPECT_STREQ("enable-download-resumption", table[158]);
178 EXPECT_STREQ("js-flags", table[159]);
179 EXPECT_STREQ("disable-transition-compositing", table[160]);
180 EXPECT_STREQ("sync-touchmove", table[161]);
181 EXPECT_STREQ("enable-experimental-extension-apis", table[162]);
182 EXPECT_STREQ("enable-gesture-tap-highlight", table[163]);
183 EXPECT_STREQ("nacl-debug-mask", table[164]);
184 EXPECT_STREQ("enhanced-bookmarks-experiment", table[165]);
185 EXPECT_STREQ("enable-fast-unload", table[166]);
186 EXPECT_STREQ("disable-boot-animation", table[167]);
187 EXPECT_STREQ("disable-ntp-other-sessions-menu", table[168]);
188 EXPECT_STREQ("enable-origin-chip-on-srp", table[169]);
189 EXPECT_STREQ("disable-account-consistency", table[170]);
190 EXPECT_STREQ("scroll-end-effect", table[171]);
191 EXPECT_STREQ("touchcancel", table[172]);
192 EXPECT_STREQ("disable-pnacl", table[173]);
193 EXPECT_STREQ("ssl-interstitial-v2-colorful", table[174]);
194 EXPECT_STREQ("new-profile-management", table[175]);
195 EXPECT_STREQ("enable-apps-show-on-first-paint", table[176]);
196 EXPECT_STREQ("enable-pinch", table[177]);
197 EXPECT_STREQ("reset-app-list-install-state", table[178]);
198 EXPECT_STREQ("disable-impl-side-painting", table[179]);
199 EXPECT_STREQ("disable-password-generation", table[180]);
200 EXPECT_STREQ("enable-experimental-canvas-features", table[181]);
201 EXPECT_STREQ("enable-offline-auto-reload-visible-only", table[182]);
202 EXPECT_STREQ("enable-streamlined-hosted-apps", table[183]);
203 EXPECT_STREQ("async-touchmove", table[184]);
204 EXPECT_STREQ("disable-touch-drag-drop", table[185]);
205 EXPECT_STREQ("enable-spdy-proxy-dev-auth-origin", table[186]);
206 EXPECT_STREQ("enable-spelling-feedback-field-trial", table[187]);
207 EXPECT_STREQ("tab-capture-upscale-quality", table[188]);
208 EXPECT_STREQ("enable-lcd-text", table[189]);
209 EXPECT_STREQ("enable-swipe-selection", table[190]);
210 EXPECT_STREQ("enable-webgl-draft-extensions", table[191]);
211 EXPECT_STREQ("enable-sync-synced-notifications", table[192]);
212 EXPECT_STREQ("enable-cloud-devices", table[193]);
213 EXPECT_STREQ("bootstrap", table[194]);
214 EXPECT_STREQ("flag-switches-end", table[195]);
215 EXPECT_STREQ("disable-search-button-in-omnibox", table[196]);
216 EXPECT_STREQ("disable-offline-auto-reload-visible-only", table[197]);
217 EXPECT_STREQ("policy-switches-end", table[198]);
218 EXPECT_STREQ("disable-webgl", table[199]);
219 EXPECT_STREQ("enforce", table[200]);
220 EXPECT_STREQ("disable-layer-squashing", table[201]);
221 EXPECT_STREQ("extensions-on-chrome-urls", table[202]);
222 EXPECT_STREQ("disable-network-portal-notification", table[203]);
223 EXPECT_STREQ("ash-enable-touch-view-testing", table[204]);
224 EXPECT_STREQ("enable-touchpad-three-finger-click", table[205]);
225 EXPECT_STREQ("file-manager-enable-new-audio-player", table[206]);
226 EXPECT_STREQ("disable-fast-text-autosizing", table[207]);
227 EXPECT_STREQ("disable-minimize-on-second-launcher-item-click", table[208]);
228 EXPECT_STREQ("disable-webrtc-hw-decoding", table[209]);
229 EXPECT_STREQ("disable-accelerated-video-decode", table[210]);
230 EXPECT_STREQ("save-page-as-mhtml", table[211]);
231 EXPECT_STREQ("disable-new-profile-management", table[212]);
232 EXPECT_STREQ("enable-zero-copy", table[213]);
233 EXPECT_STREQ("enable-linkable-ephemeral-apps", table[214]);
234 EXPECT_STREQ("use-simple-cache-backend", table[215]);
235 EXPECT_STREQ("enable-devtools-experiments", table[216]);
236 EXPECT_STREQ("disable-sync-synced-notifications", table[217]);
237 EXPECT_STREQ("disable-compositor-touch-hit-testing", table[218]);
238 EXPECT_STREQ("enable-accelerated-fixed-root-background", table[219]);
239 EXPECT_STREQ("enable-tcp-fastopen", table[220]);
240 EXPECT_STREQ("disable-async-dns", table[221]);
241 EXPECT_STREQ("enable-syncfs-directory-operation", table[222]);
242 EXPECT_STREQ("disable-spdy-proxy-dev-auth-origin", table[223]);
243 EXPECT_STREQ("disable-display-color-calibration", table[224]);
244 EXPECT_STREQ("disable-accelerated-overflow-scroll", table[225]);
245 }
246
247 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698