Closed
Bug 853867
Opened 12 years ago
Closed 11 years ago
GTest (via --enable-gtest) doesn't build on Android
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla23
People
(Reporter: cwiiis, Assigned: cwiiis)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
Patch incoming.
Assignee | ||
Comment 1•12 years ago
|
||
This lets a --enable-gtest build to finish on Android-x86 for me - I've done no further testing yet.
Attachment #728226 -
Flags: review?(bgirard)
Comment 2•12 years ago
|
||
Comment on attachment 728226 [details] [diff] [review]
Allow --enable-gtest on Android and fix build issues
bas for moz2d tests.
Attachment #728226 -
Flags: review?(bgirard)
Attachment #728226 -
Flags: review?(bas)
Attachment #728226 -
Flags: review+
Comment 4•12 years ago
|
||
Comment on attachment 728226 [details] [diff] [review]
Allow --enable-gtest on Android and fix build issues
Review of attachment 728226 [details] [diff] [review]:
-----------------------------------------------------------------
This comment applies for all places! :-)
::: gfx/2d/unittest/TestScaling.cpp
@@ +22,5 @@
>
> void
> TestScaling::BasicHalfScale()
> {
> + uint32_t *pixels = new uint32_t[500*500];
Don't do this :-)
@@ +31,5 @@
> pixels[(y + 1) * 500 + x] = 0xff000000;
> pixels[(y + 1) * 500 + x + 1] = 0xff0000ff;
> }
> }
> + ImageHalfScaler scaler(reinterpret_cast<uint8_t*>(pixels), 500 * 4, IntSize(500, 500));
&data.front()
Attachment #728226 -
Flags: review?(bas) → review-
Comment 5•11 years ago
|
||
Got time to finish this cwiiis? I'm looking into getting this to run on buildbot to give mobile some APZC tests.
Depends on: gtest
Comment 6•11 years ago
|
||
Attachment #728226 -
Attachment is obsolete: true
Attachment #741975 -
Flags: review?(bas)
Comment 7•11 years ago
|
||
Comment on attachment 741975 [details] [diff] [review]
Allow --enable-gtest on Android and fix build issues v2
Review of attachment 741975 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/2d/unittest/TestScaling.cpp
@@ +25,5 @@
> {
> std::vector<uint8_t> data;
> data.resize(500 * 500 * 4);
>
> + uint32_t *pixels = (uint32_t*)&data.front();
C++ casts, please.
Comment 8•11 years ago
|
||
Attachment #741975 -
Attachment is obsolete: true
Attachment #741975 -
Flags: review?(bas)
Updated•11 years ago
|
Attachment #741986 -
Flags: review?(bas)
Updated•11 years ago
|
Attachment #741986 -
Flags: review?(bas) → review+
Comment 9•11 years ago
|
||
author credits go to Cwiiis:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5fb2a77bb0db
Comment 10•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•