Commit Graph

53 Commits

Author SHA1 Message Date
Christian Blichmann
d805286343 Move libtiff sandbox to contrib/, add to tests
PiperOrigin-RevId: 453410018
Change-Id: I7a9815d844e43fe4b6a1971104179c5b854b2f0a
2022-06-07 05:05:19 -07:00
Christian Blichmann
6cbde854d6 #Cleanup: Consistently use char* argv[] instead of char**
PiperOrigin-RevId: 444782296
Change-Id: If8e7647be28f794392675ae001abbe9b809da0ac
2022-04-27 00:43:51 -07:00
Christian Blichmann
839914d6dd cmake: Rename build options to follow Abseil naming
`BUILD_TESTING` is a CMake provided option and we should use similar naming,
just like how Abseil does it.

- `SAPI_ENABLE_TESTS` -> `SAPI_BUILD_TESTING`
- `SAPI_ENABLE_CONTRIB_TESTS` -> `SAPI_CONTRIB_BUILD_TESTING`
- `SAPI_ENABLE_EXAMPLES` -> `SAPI_BUILD_EXAMPLES`

Drive-by:
- Fix option name in GitHub action
PiperOrigin-RevId: 443305932
Change-Id: Ice2b42be1229a0f9ae7c2ceda9ce87187baf22c4
2022-04-21 01:17:39 -07:00
Christian Blichmann
d451478e26 Change license link to HTTPS URL
PiperOrigin-RevId: 424811734
Change-Id: If5ea692edc56ddc9c99fd478673df41c0246e9cc
2022-01-28 01:39:09 -08:00
Christian Blichmann
90d1867026 Remove deprecated sapi::StatusOr<> forward declaration
PiperOrigin-RevId: 399663835
Change-Id: I92255a68e50a3b9130d3e222a2e353ee2e599c18
2021-09-29 05:39:10 -07:00
Christian Blichmann
dbaf95c724 Move utility code into sandboxed_api/util
This change should make it less confusing where utility code comes from.
Having it in two places made sense when we were debating whether to publish
Sandbox2 separately, but not any longer.

Follow-up changes will move `sandbox2/util.h` and rename the remaining
`sandbox2/util` folder.

PiperOrigin-RevId: 351601640
Change-Id: I6256845261f610e590c25e2c59851cc51da2d778
2021-01-13 09:25:52 -08:00
Copybara-Service
6f8e758177 Merge pull request #56 from alexelex:master
PiperOrigin-RevId: 346286713
Change-Id: Ib052758d6a7deaa1c62660fd43d8f0e31f42bc09
2020-12-08 03:15:35 -08:00
Latysheva Alexandra
0710361ed4
update helper 2020-10-30 20:41:26 +06:00
Alexandra Latysheva
219da51823 use ctest for testing and set testing environment for using test data 2020-10-30 14:34:33 +00:00
Latysheva Alexandra
113e6c8229
update readme 2020-10-30 19:07:40 +06:00
Alexandra Latysheva
bfbb4f70c4 remove default image in the example and rewrite usage 2020-10-30 12:36:42 +00:00
Alexandra Latysheva
2e2e0c741e use inline for constants in the header 2020-10-29 05:58:27 +00:00
Alexandra Latysheva
aef95ad002 don't use const with absl::string_view 2020-10-29 05:33:36 +00:00
Alexandra Latysheva
ce12cac60c add header for data and move there common consts 2020-10-28 14:04:14 +00:00
Alexandra Latysheva
b74b3c80fc use local variable instead of dynamic variable in TiffSapiSandbox::ModifyPolicy 2020-10-28 13:16:15 +00:00
Alexandra Latysheva
bb871df80f format; use explicit for construct with default values; rewrite GetImagePath usage 2020-10-28 12:54:06 +00:00
Alexandra Latysheva
8ceb08dbf4 absl_string -> std_string as Sandbox param 2020-10-28 12:04:12 +00:00
Alexandra Latysheva
b41bcccab7 parametrize test 2020-10-28 12:03:23 +00:00
Alexandra Latysheva
124680eb89 remove unused includes 2020-10-28 10:32:55 +00:00
Alexandra Latysheva
de377ffd2d default values (remove 123 and 456) 2020-10-23 12:39:52 +00:00
Alexandra Latysheva
b6a47abf01 PtrBefore/PtrBoth/PtrAfter 2020-10-23 06:54:36 +00:00
Alexandra Latysheva
418bc3f356 using absl 2020-10-22 16:19:27 +00:00
Alexandra Latysheva
1350cfb3b6 bool status -> bool status_ok (tests:raw_decode) 2020-10-19 10:40:19 +00:00
Alexandra Latysheva
316828a219 auto& -> const auto&; bool status -> bool status_ok 2020-10-19 10:36:47 +00:00
Alexandra Latysheva
9eb518c57a move using to namespace 2020-10-11 11:06:18 +00:00
Latysheva Alexandra
77c44f9c87
add flags to readme 2020-10-11 17:02:47 +06:00
Latysheva Alexandra
7750b43c56
remove tabs in readme 2020-10-11 16:54:37 +06:00
Alexandra Latysheva
554c03bec9 use absl format string 2020-10-11 10:53:08 +00:00
Alexandra Latysheva
60541cc8ea clang-format 2020-10-11 10:30:10 +00:00
Alexandra Latysheva
16d904e174 code block 2020-10-11 10:24:55 +00:00
Alexandra Latysheva
64b74c97e0 4 spaces -> 2 spaces 2020-10-11 10:23:42 +00:00
Alexandra Latysheva
1d1c4b9579 clear array initialization 2020-10-11 10:18:53 +00:00
Alexandra Latysheva
466259a985 using auto* for pointers 2020-10-11 10:13:27 +00:00
Alexandra Latysheva
ab3f992c78 using auto* for pointers 2020-10-11 10:11:56 +00:00
Alexandra Latysheva
6945f7304f replace all unsigned except in wrapper 2020-10-11 10:01:59 +00:00
Alexandra Latysheva
69fbe39293 Declare all vars on separate lines 2020-10-11 09:44:02 +00:00
Alexandra Latysheva
d190abf2e2 using from .h to .cc 2020-10-11 09:40:47 +00:00
Alexandra Latysheva
1785e39d4b add nolint to every include '*.h' that is added by this pr 2020-10-11 08:20:40 +00:00
Alexandra Latysheva
5449e2f0df renamed g_in_dir in local variable style 2020-10-04 17:58:21 +00:00
Alexandra Latysheva
b6abae3356 rewtite pixels and clusters check for clarify. sapi::StatusOr -> absl::StatusOr (building problems). resolved review issues 2020-10-04 17:38:10 +00:00
Alexandra Latysheva
6497a40bff last for now 2020-10-01 17:11:28 +00:00
Alexandra Latysheva
fea40e017f format 2020-10-01 16:56:45 +00:00
Alexandra Latysheva
2869fba479 example 2020-10-01 16:49:59 +00:00
Alexandra Latysheva
477de3b6b7 last for today 2020-09-30 19:17:23 +00:00
Alexandra Latysheva
0f8cbd1bfc some more fixes 2020-09-30 18:45:48 +00:00
Alexandra Latysheva
d513f18c2e resolved part of issues 2020-09-30 17:54:47 +00:00
Alexandra Latysheva
8b36b3e5af clang-format again 2020-09-26 11:27:13 +00:00
Alexandra Latysheva
71e43cd99c main fixes 2020-09-25 21:21:07 +00:00
Alexandra Latysheva
309b476a3d wrong clang-google-style parts 2020-09-23 21:33:11 +00:00
Alexandra Latysheva
6a2f0cebd8 wrong clang-google-style parts 2020-09-23 21:32:45 +00:00