0
Commit Graph

39 Commits

Author SHA1 Message Date
dpapad
5c828832a6 [Reland ] WebUI: Turn on ESLint JS presubmit checks for ios/ folder.
Reland notes : The reason the previous reland was reverted was dealt
in a precursor CL (see crbug.com/398274433) and is no longer part of
this reland.

Bug: 397907153
Change-Id: I2ee1871ad10f3d607634085a31eb5c37e61e8dd2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6293728
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424698}
2025-02-25 11:47:12 -08:00
dpapad
c885f14abd Implement CheckChangeOnCommit in ios/PRESUBMIT.py.
Previously only CheckChangeOnUpload was implemented, which is not great,
as it makes the behavior between `git cl upload` and `git cl presubmit`
different.

As part of implementing CheckChangeOnCommit, also had to fix an error
that was only thrown when the presubmit tests run on Windows, causing
[1] to fail in https://crrev.com/c/6287035 and consequently causing the
CL to be reverted.

Verified the fix on a local Windows checkout, by running
git cl
presubmit --files="ios/*"

[1] https://ci.chromium.org/ui/p/chromium/builders/ci/win-presubmit

Fixed: 398274433
Change-Id: I89843333ed416b88c46ec44010d2efed44053d7a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6292271
Reviewed-by: Sergio Collazos <sczs@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1423443}
2025-02-21 15:05:50 -08:00
Muyao Xu
7f18fb6485 Revert "[Reland] WebUI: Turn on ESLint JS presubmit checks for ios/ folder."
This reverts commit d8d407d71b.

Reason for revert: might have caused builder failures
crbug.com/398274433

Original change's description:
> [Reland] WebUI: Turn on ESLint JS presubmit checks for ios/ folder.
>
> Reland notes: Limiting the original change to only apply to JS files
> instead of both JS and TS, as there are still TS violations that need to
> be fixed. Also confirmed that the following command passes locally
> `git cl presubmit --files="ios/*.ts;ios/*.js"`
>
> Also adding CheckChangeOnCommit() which was previously erroneously
> missing, causing `git cl presubmit --files=...` to not behave
> equivalently to `git cl upload`.
>
> Bug: 40519637
> Change-Id: I3be6f2a7bf5d89c32d3ae316e2568baa8b509411
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6287035
> Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
> Reviewed-by: Rohit Rao <rohitrao@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1423237}

Bug: 40519637, 398274433
Change-Id: I45eb962de484a6bc60557de3c5f3f2501618acd3
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6292786
Owners-Override: Muyao Xu <muyaoxu@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Muyao Xu <muyaoxu@google.com>
Auto-Submit: Muyao Xu <muyaoxu@google.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1423376}
2025-02-21 13:16:09 -08:00
dpapad
d8d407d71b [Reland] WebUI: Turn on ESLint JS presubmit checks for ios/ folder.
Reland notes: Limiting the original change to only apply to JS files
instead of both JS and TS, as there are still TS violations that need to
be fixed. Also confirmed that the following command passes locally
`git cl presubmit --files="ios/*.ts;ios/*.js"`

Also adding CheckChangeOnCommit() which was previously erroneously
missing, causing `git cl presubmit --files=...` to not behave
equivalently to `git cl upload`.

Bug: 40519637
Change-Id: I3be6f2a7bf5d89c32d3ae316e2568baa8b509411
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6287035
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1423237}
2025-02-21 09:57:41 -08:00
Benjamin Williams
715f02399b [iOS] Add presubmit check to enforce shared Chrome iOS color management
This CL introduces a new presubmit check to enforce using shared Chrome
iOS colors by requiring all new colors to be added to
ios/chrome/common/ui/colors/ and providing helpful warnings to users
when colors are modified.

Technical implementation:
- Adds CheckNewColorIntroduction presubmit check that monitors colorset
  file changes
- Implements error checking for new colors added outside
  ios/chrome/common/ui/colors/
- Provides warnings for modified colors
- Adds FormatMessageWithFiles helper for consistent error reporting

Critical conditions:
- Errors: New colors must be added to ios/chrome/common/ui/colors/
- Warnings: Generated for:
  - New colors added to ios/chrome/common/ui/colors/ (to check for
    duplicates)
  - Modifications to existing colors (to ensure shared color usage)

Usage constraints:
- Affects all changes to .colorset/Contents.json files
- Full test coverage included to validate different color modification
  scenarios

Change-Id: I01fc85d553be7d6e234bd4d29fc353c55bc26ba3
Fixed: 397741197
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6281073
Reviewed-by: Gauthier Ambard <gambard@chromium.org>
Commit-Queue: Benjamin Williams <bwwilliams@google.com>
Reviewed-by: Mark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1422462}
2025-02-20 04:44:09 -08:00
Demetrios Papadopoulos
247b49466f Revert "WebUI: Turn on ESLint presubmit checks for ios/ folder."
This reverts commit afe5b54af7.

Reason for revert: Broke linux-presubmit bot, https://ci.chromium.org/ui/p/chromium/builders/ci/linux-presubmit/24903/overview. Will fix missed violations and reland.

Original change's description:
> WebUI: Turn on ESLint presubmit checks for ios/ folder.
>
> Also adding CheckChangeOnCommit() which was previously erroneously
> missing, causing `git cl presubmit --files=...` to not behave
> equivalently to `git cl upload`.
>
> Bug: 40519637
> Change-Id: I9edab86e603f87208e4ef3bc6e39a7f58eb8a738
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6277634
> Reviewed-by: Mike Dougherty <michaeldo@chromium.org>
> Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
> Reviewed-by: Rohit Rao <rohitrao@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1422204}

Bug: 40519637
Change-Id: I3b556d24259c26b9650fcdb49d5c99550a1ac897
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6283430
Commit-Queue: Rohit Rao <rohitrao@chromium.org>
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1422305}
2025-02-19 18:05:31 -08:00
dpapad
afe5b54af7 WebUI: Turn on ESLint presubmit checks for ios/ folder.
Also adding CheckChangeOnCommit() which was previously erroneously
missing, causing `git cl presubmit --files=...` to not behave
equivalently to `git cl upload`.

Bug: 40519637
Change-Id: I9edab86e603f87208e4ef3bc6e39a7f58eb8a738
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6277634
Reviewed-by: Mike Dougherty <michaeldo@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1422204}
2025-02-19 14:17:23 -08:00
Federica Germinario
2ce51a841d [ios] Add presubmit check to limit use of NSUserDefaults
This CL adds a presubmit check trying to limit new usage of
NSUserDefaults.
Note that this check provides a WARNING message.

This check does not cover all scenarios and can produce some false
positives (in case the developer uses the pattern code to get
the content of an existing userDefault key).

Bug: none
Change-Id: Ie78b731ff5517a5c2d331494b2e76c66f630c6dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6179973
Reviewed-by: Mark Cogan <marq@chromium.org>
Commit-Queue: Federica Germinario <fedegermi@google.com>
Cr-Commit-Position: refs/heads/main@{#1411606}
2025-01-27 06:44:10 -08:00
Gauthier Ambard
3803d8fbdb [iOS] Add a presubmit warning when adding unordered string
Bug: None
Change-Id: I62bbd744873e72dd113415c661a4afe7e55ff8c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6141656
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1403154}
2025-01-07 11:36:07 -08:00
Gauthier Ambard
304538e572 [iOS] Format PRESUBMIT.py
This CL run git cl format --python on PRESUBMIT.py.
This is to prepare to add a presubmit ordering the strings
alphabetically.

Bug: None
Change-Id: I0e6ebbda35b1c28cb327189d8263e4b0949445bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6141817
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Auto-Submit: Gauthier Ambard <gambard@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1402938}
2025-01-07 06:07:05 -08:00
Aliona DANGLA
bc39d1af1d [iOS] Remove forward ChromeBrowserState presubmit check
Bug: 358053899
Change-Id: I3a3350d4ac5c08642993381189cf566d2f910aae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5953254
Commit-Queue: Mark Cogan <marq@chromium.org>
Reviewed-by: Mark Cogan <marq@chromium.org>
Commit-Queue: Aliona Dangla <alionadangla@chromium.org>
Auto-Submit: Aliona Dangla <alionadangla@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372645}
2024-10-23 12:53:36 +00:00
Justin Cohen
5f8ac41535 ios: Convert tearDown to tearDownHelper.
In preparation for experimenting with hermetic tests, rename tearDown
to tearDownHelper to simplify skipping individual test case tearDown
calls.

Change-Id: I62371a54a2f4763a1b4d7218646faff0753d81b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5924143
Auto-Submit: Justin Cohen <justincohen@chromium.org>
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1368788}
2024-10-15 15:09:19 +00:00
Federica Germinario
6aeebd4a79 [ios] Add presubmit check to improve unittests
This CL adds a presubmit check which checks if new changes in
unit test code can be improved by giving a warning message.

Example of lines that can be improved:
(EXPECT_TRUE or EXPECT_FALSE) +
(isEqualToString: or isEqualToData: or isEqualToArray:)

This CL also fixed the error_message string of:
_CheckHasNoChromeBrowserStateForwardDeclaration

Bug: none
Change-Id: I46a3593c7d9d41c54cdf87986895e295553e01c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5866150
Commit-Queue: Federica Germinario <fedegermi@google.com>
Reviewed-by: Mark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1356410}
2024-09-17 11:59:15 +00:00
Federica Germinario
61a9eb6526 [ios] Add presubmit check to CheckChangeOnUpload
Follow-up of:
https://chromium-review.googlesource.com/c/chromium/src/+/5797169

Code checking for ChromeBrowserStateForwardDeclaration was never run.

Bug: none
Change-Id: Ia5d019ae24f538c81efdcb73a94b725e4aec13e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5824399
Auto-Submit: Federica Germinario <fedegermi@google.com>
Commit-Queue: Mark Cogan <marq@chromium.org>
Reviewed-by: Mark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1349095}
2024-08-30 08:57:33 +00:00
Mark Cogan
3f3cb7d0b9 [iOS] Add PRESUBMIT for ChromeBrowserState forward declaration.
Adds a PRESUBMIT check to catch forward-declarations of
ChromeBrowserState, which (for the time being) should instead be
done with the forwarding header.

The check for this is intentionally quite narrow.

Bug: 359821340
Change-Id: I143cd68ad37ccb69a03f17014ec3819f6c2fde5f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5797169
Auto-Submit: Mark Cogan <marq@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Mark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1344010}
2024-08-20 08:39:40 +00:00
Daniel Bratell
5cb4c1e218 [ios] Make ios/web_view properties nullable for better compatibility
This makes CWVPageView.title, CWVBackForwardListItem.title and
CWPageView.lastCommittedUrl nullable so that their Swift bindings
become equal to the WebKit variants.

For Objective C there will be no noticeable change which might be
why it was never noticed.

This also modifies the PRESUBMIT check to allow nullability
in ios/web_view even if it is banned everywhere else.

Bug: 334275652
Change-Id: I957430f556df9a8bfabb1a947e66f188a009eaa5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5444561
Reviewed-by: Mike Dougherty <michaeldo@chromium.org>
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Commit-Queue: Daniel Bratell <bratell@opera.com>
Cr-Commit-Position: refs/heads/main@{#1288560}
2024-04-17 07:49:06 +00:00
Mark Cogan
cc4c1eab0c Update ios/ PRESUBMIT to warn for b/ TODO links.
This CL changes the ios/ PRESUBMIT to warn if b/ links are used in
TODOs.

Also fixes some error messages. In the singular, inserts an 'a' for
correctness ("without a bug number" vs "without bug number"). Also now
the parentheses opened with "(expected format is" is now closed before
the final colon.

Bug: 326058403
Change-Id: I863a013120939e3fe20656b064c8d095e30b1223
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5343955
Reviewed-by: Asami Doi <asamidoi@chromium.org>
Commit-Queue: Mark Cogan <marq@chromium.org>
Reviewed-by: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: Mark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1269465}
2024-03-07 09:31:29 +00:00
Avi Drissman
3d243a4ce2 Add presubmit error for ARC boilerplate
The ARC boilerplate isn't needed any more and is being removed across
the codebase. Add a presubmit to avoid getting any more committed.

The presubmit change alone landed earlier and was reverted because it
wasn't ready. Now this lands along with other related changes.

Bug: 1468376
Change-Id: I9a7fdc66ed5daa1d623e3226fdf4e9004c071d5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4727321
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1177895}
2023-08-01 16:53:59 +00:00
Takuto Ikuta
40def48455 PRESUBMIT.py: remove USE_PYTHON3 = True
presubmit now uses python3 only.

This is generated by
$ rg -l '^USE_PYTHON3 = True' | \
  xargs sed -z -i "s/\n*USE_PYTHON3 = True\n*/\n\n/"
with some more modifications.

This also removes run_on_python2, run_on_python3, and skip_shebang_check
args.

Bug: 1207012
Change-Id: I8c842d0a9ac485a27399d704a17b755f58a64db8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4573952
Reviewed-by: Nico Weber <thakis@chromium.org>
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Owners-Override: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1152319}
2023-06-02 02:23:49 +00:00
Tomasz Jurkiewicz
55a0aa18d4 Accept buganizer tickets in TODO comments.
Bug: b/271240665
Change-Id: Ib30bec0d383f882dd2ad3b22a647e3257b2229f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4295220
Commit-Queue: Tomek Jurkiewicz <tju@google.com>
Reviewed-by: Mark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1111730}
2023-03-01 18:53:46 +00:00
Louis Romero
e33c2da2f0 Add presubmit against boxed BOOLs
Bug: None
Change-Id: Iac0feef9e3fa199307aa9a8a12c8db180cf629ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4177184
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Auto-Submit: Louis Romero <lpromero@google.com>
Cr-Commit-Position: refs/heads/main@{#1094440}
2023-01-19 14:18:53 +00:00
Avi Drissman
ea1be23a8b Update copyright headers in ipc/, ios/, infra/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c95.

No-Try: true
Bug: 1098010
Change-Id: I958bc4caa48822ca0d15594e906783852cd0c499
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3893343
Reviewed-by: Mark Mentovai <mark@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047189}
2022-09-14 23:29:06 +00:00
Gauthier Ambard
f85c5f14a7 [iOS] Add a PRESUBMIT check for pipes in comments
This CL adds a check to prevent adding additional pipes to disambiguate
symbols and variables in comments. Backticks should be used instead.

Bug: 1311955
Change-Id: Ib0bef6ba7692200c40fe91fbb6781ed173cfc84f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3892349
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: Mark Cogan <marq@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1046855}
2022-09-14 11:26:54 +00:00
Gauthier Ambard
1981d62c90 [iOS] Reformat PRESUBMIT
It seems that the files were not following `git cl format --python`.

Bug: 1311955
Change-Id: I12261053e32395979c4fc2dbe92ee921435ba8f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3891284
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Auto-Submit: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1046284}
2022-09-13 09:34:49 +00:00
Arthur Milchior
be8d88db08 [iOS] full link to import/include lint error
Currently, the link that is given is not recognized by apple default
terminal. Since it’s almost a given that any developer will have
internet access, using an online link seems acceptable. I selected the
public link given that Chrome is open source.

Change-Id: I565affd0fb24b6e8a007468781daa02c8f79dd11
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3826240
Commit-Queue: Arthur Milchior <arthurmilchior@google.com>
Reviewed-by: Mark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1034480}
2022-08-12 15:14:48 +00:00
Petro Akzhygitov
db9b35162c Add a presubmit check for adding #include preprocessor directives
– Added a presubmit check and testsed it

Bug: 1328809
Change-Id: If6d5eb9d2231eebd7ad097e9673c951c950754cc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3663127
Reviewed-by: Mark Cogan <marq@chromium.org>
Commit-Queue: Petro Akzhygitov <pakzhygitov@google.com>
Cr-Commit-Position: refs/heads/main@{#1019989}
2022-07-01 08:21:50 +00:00
Josip Sokcevic
2e6b82bdf9 [py3] Migrate ios PRESUBMIT
Bug: 1212040
Change-Id: Ia7600f8e3da825591d7c4a277e583d9dc6a89026
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2957342
Commit-Queue: Mark Cogan <marq@chromium.org>
Auto-Submit: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: Mark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#892008}
2021-06-14 09:37:31 +00:00
Nohemi Fernandez
a3833370c8 [iOS] Add presubmit check for nullability annotations in iOS code.
Following on conversation from patch 2087403 that discusses the use
of nullability annotations in Chrome. Add a presubmit check that
ensures stricter rules on the use of Nullability in Obj-C as defined
by https://github.com/google/styleguide/blob/gh-pages/objcguide.md#nullability.

Change-Id: I57d92ad1551815f609e8bc7fc7ddc29202b05c22
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2111181
Commit-Queue: Nohemi Fernandez <fernandex@chromium.org>
Reviewed-by: Mark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#752484}
2020-03-23 17:22:19 +00:00
Edward Lemur
35bdc0f535 PRESUBMIT.py: Remove uses of EnsureCQIncludeTrybotsAreAdded.
The functionality was moved to cq.cfg in
https://chromium-review.googlesource.com/c/chromium/src/+/1265735

Bug: 881860
Change-Id: I839784ec7babfa095272ab06c4c21c1e57475216
Reviewed-on: https://chromium-review.googlesource.com/c/1266055
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600875}
2018-10-18 19:59:55 +00:00
Eric Foo
ad6195396f Update PRESUBMIT references to ios-simulator-cronet to use new LUCI builder
Bug:731358
Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.android:android_cronet_tester
Change-Id: Ia637891e8b864efceabc527675f1280eb65fe396

TBR=sdefresne@chromium.org

Change-Id: Ia637891e8b864efceabc527675f1280eb65fe396
Reviewed-on: https://chromium-review.googlesource.com/1189162
Commit-Queue: Eric Foo <efoo@chromium.org>
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#586104}
2018-08-25 01:52:38 +00:00
Sergey Berezin
7303adb5ab [cq] Migrate ios-* builders to LUCI.
TBR=sdefresne@chromium.org, tandrii@chromium.org

Bug: 731542, 731544, 731354, 776178
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I79d65f73e574e11afd9b0b490edf056c0d8c90fd
Reviewed-on: https://chromium-review.googlesource.com/1062967
Reviewed-by: Sergey Berezin <sergeyberezin@chromium.org>
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
Commit-Queue: Sergey Berezin <sergeyberezin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#559321}
2018-05-16 22:51:08 +00:00
Gauthier Ambard
7fc07bf6ad Fix PRESUBMIT check for ARC guard
The check is failing because it was written as if the content of the
file returned with f.NewContents() is a string. It is actually a list.
This CL fixes it.

The check never worked.

Bug: 798289
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: Icfd216bbcaee78671878b65ac412b9063bd24509
Reviewed-on: https://chromium-review.googlesource.com/847372
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#526452}
2018-01-02 09:58:03 +00:00
stkhapugin@chromium.org
0066f73c3e Add a presubmit check for ARC compile guards in new .mm files for iOS.
Implements a new presubmit check that verifies that newly created .mm
files have a proper compile guard.

For example:

$ touch ios/asdf.mm
$ git commit -am "asdf" && git cl upload

Running presubmit upload checks ...

** Presubmit ERRORS **
Found new Objective-C implementation file without compile guard. Please use the following compile guard:
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif

ios/asdf.mm


Bug: 762461
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: Ice720c8ddf5db2f11b12e56c0877619d612fa9ef
Reviewed-on: https://chromium-review.googlesource.com/844696
Commit-Queue: Stepan Khapugin <stkhapugin@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#526292}
2017-12-28 10:44:32 +00:00
Louis Romero
5fbe97957c Fix typo
Bug: none
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: Ifc43afb495541b7ed62e9d001d331469d3156caa
Reviewed-on: https://chromium-review.googlesource.com/776694
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Louis Romero <lpromero@chromium.org>
Cr-Commit-Position: refs/heads/master@{#517434}
2017-11-17 17:06:15 +00:00
Menglu Huang
a7e41d218c Add EarlGrey tests tryjobs to all ios changes
Add EarlGrey tests tryjobs to ios changes.  We want to have EG
tests running for at least ios changes to reduce tree breakages.

Since the ios-simulator-full-configs has only 8 builders, iOS CLs might
experience extra landing time due to the tryjob size and limited capacity.

Bug: 782735
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I8c00dbe1963893af19c37d7410e6d57c8d37ab5d
Reviewed-on: https://chromium-review.googlesource.com/759166
Reviewed-by: Rohit Rao (ping after 24h) <rohitrao@chromium.org>
Commit-Queue: Menglu Huang <huangml@chromium.org>
Cr-Commit-Position: refs/heads/master@{#515214}
2017-11-09 18:30:12 +00:00
Misha Efimov
015b1d87ac Add Cronet iOS trybot to all iOS changes.
Bug: 712733
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I3a774cc6680a96849a9ce013fb2943361e0abe91
Reviewed-on: https://chromium-review.googlesource.com/726004
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
Reviewed-by: Eugene But <eugenebut@chromium.org>
Commit-Queue: Misha Efimov <mef@chromium.org>
Cr-Commit-Position: refs/heads/master@{#509821}
2017-10-18 18:49:59 +00:00
Sylvain Defresne
fcda19fd7a [ios] Add a PRESUBMIT check for TODO.
All TODOs in src/ios/ should follow the format TODO(crbug.com/######)
so add a PRESUBMIT.py check (and corresponding unit tests) for that.

BUG=677203

Change-Id: I360ad75c786f292d3a8ada8df519cb451c1c2828
Reviewed-on: https://chromium-review.googlesource.com/538613
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: Eugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#482589}
2017-06-27 10:26:23 +00:00
jam
93a6ee79f3 Turn on clang format as an upload step for all the repo.
Discussion at https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/7Zm1Z49TV7U
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel

Review-Url: https://codereview.chromium.org/2680413002
Cr-Commit-Position: refs/heads/master@{#449148}
2017-02-08 23:59:22 +00:00
sdefresne
b742db2fa3 Enfore "clang-format" for all of src/ios/.
As we're adding more and more code outside of stc/ios/{web,chrome},
add a presubmit check enforcing "clang-format" for all of src/ios/
instead of limiting it to select sub-directories of src/ios/.

BUG=None

Review-Url: https://codereview.chromium.org/2665383002
Cr-Commit-Position: refs/heads/master@{#447541}
2017-02-01 17:03:14 +00:00