38 Commits

Author SHA1 Message Date
solenberg@webrtc.org
d6e46638ec Logging for BWE test framework.
BUG=
R=stefan@webrtc.org, tina.legrand@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/2749004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5055 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-10-30 16:06:26 +00:00
kjellander@webrtc.org
06b60c07b7 Roll chromium_revision 228675:229708
This will pick up the -Wunused-const-variable
Clang warning being enabled by default (chromium:307668).

BUG=none
TEST=trybots passing.
R=andrew@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/2629004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5014 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-10-22 12:09:48 +00:00
kjellander@webrtc.org
893c07f209 Disable the -Wno-unused-const-variable Clang warning on Mac
In r4966 this was disabled on Linux for WebRTC code in order to detect any new unused const variables.
This CL does the same for Mac.

BUG=none
TEST=added an unused const and verified compilation fails
when this patch is applied. Mac trybots passing as well.

R=andrew@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/2459004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4997 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-10-18 14:42:27 +00:00
kjellander@webrtc.org
3555303cb0 Roll chromium_revision 226126:228675 and fix clang warnings
By request from thakis@chromium.org, I disabled the
-Wno-unused-const-variable setting that is set in Chromium's
common.gypi so we can prepare our code for it's removal.

This required some cleanup in order to get the code to compile
with Clang having the -Wunused-const-variable warning enabled.

TEST=all trybots passing
BUG=none
R=niklas.enbom@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/2400004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4966 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-10-15 20:10:17 +00:00
kjellander@webrtc.org
2a97317953 Fix include of isolate.gypi
Recent changes in GYP seem to have broken our previous
"hack" for getting the GYP rule for .isolate files
imported from the Chromium build/isolate.gypi.

The best solution for now is to remove the hack
and check in a copy of Chromium's src/build/isolate.gypi
in WebRTC's build/ dir instead. A similar approach is
used for our build/protoc.gypi file.

TEST=On Linux, I successfully ran:
gclient runhooks
ninja -C out/Release
and verified a bunch of .isolated files were created in
out/Release (which didn't happen before this patch).

I also renamed the build/isolate.gypi from Chromium to
ensure that our own is used and not that one (in case any
paths would be incorrect).

I also ran build/gyp_chromium in a Chromium checkout
with WebRTC in third_party/webrtc having this patch applied
to ensure GYP processing was still working.

Finally, I verified that the same project generation and
compilation from a Chromium checkout worked the way we build
our Android native tests, using:
. build/android/envsetup.sh
GYP_DEFINES="$GYP_DEFINES include_tests=1 enable_tracing=1" gclient runhooks
ninja -C out/Release android_builder_webrtc

BUG=1916
R=andrew@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/2338004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4907 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-10-02 19:31:16 +00:00
henrike@webrtc.org
34c50c1de1 Makes OpensSL default audio implementation/device on Android.
BUG=N/A
R=andrew@webrtc.org, fischman@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/2198005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4871 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-09-27 22:34:35 +00:00
fischman@webrtc.org
31b4a5ac82 Recognize armv7 target_arch for ios support in webrtc common.gyp
BUG=2343
R=andrew@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/2176004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4684 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-09-05 16:46:36 +00:00
kjellander@webrtc.org
3365422c41 Isolate GYP target and .isolate files for tests
This is a re-land attempt of http://review.webrtc.org/1673004/
It now includes a build/isolate.gypi in WebRTC that includes the same
file as the one that would be included when WebRTC is used in a Chromium
checkout. It is needed since it is not possible to use variables in GYP's
includes sections.

Implemented according to the instructions at
http://www.chromium.org/developers/testing/isolated-testing

Workflow has been like this:
1. create _run GYP target
2. create a stripped down .isolate file
3. export GYP_DEFINES="$GYP_DEFINES test_isolation_mode=check"
4. runhooks
5. compile
6. test if the test would run (i.e. find it's dependencies) without
   actually executing it:
   tools/swarm_client/isolate.py run --isolated out/Release/testname.isolated
7. If failing, run the fix_test_cases.py script like this:
   tools/swarm_client/googletest/fix_test_cases.py --isolated out/Release/testname.isolated

All tests that run on the bots for WebRTC has got _run target
and .isolate file created.

"Normal tests" that run fine on any machine:
* audio_decoder_unittests
* common_audio_unittests
* common_video_unittests
* metrics_unittests
* modules_tests
* modules_unittests
* neteq_unittests
* system_wrappers_unittests
* test_support_unittests
* tools_unittests
* video_engine_core_unittests
* voice_engine_unittests

Tests that requires bare-metal and audio/video devices:
* audio_device_tests
* video_capture_tests

I also added the isolate boilerplate code for the following
tests that are not yet pure gtest binaries (which means they
cannot run isolated yet):
* video_render_tests
* vie_auto_test
* voe_auto_test

TEST=running isolate.py as described above. WebRTC trybots passing. Created a Chromium checkout with third_party/webrtc ToT and this patch applied, passing the runhooks step.
BUG=1916
R=henrike@webrtc.org, tommi@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/2056004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4590 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-08-22 07:57:00 +00:00
fischman@webrtc.org
d0f4c2185b iOS: unbreak the build following r4546
BUG=2255
R=niklas.enbom@webrtc.org, sjlee@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/2078004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4577 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-08-20 22:16:55 +00:00
sjlee@webrtc.org
d690eab54f The video capture module for iOS.
This CL is from https://webrtc-codereview.appspot.com/1339004.

Patch this CL, then run the trunk/webrtc/build/vie-webrtc.sh.

BUG=2105
R=fischman@webrtc.org, mallinath@webrtc.org, niklas.enbom@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1641004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4546 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-08-14 22:07:04 +00:00
sergeyu@chromium.org
abab1d8456 Don't set clang_use_chrome_plugins in common.gypi
This caused a failure on chrome os ASAN bots (where that flag is disabled):
http://build.chromium.org/p/chromium.memory/builders/Chromium%20OS%20%28x86%29%20ASAN/builds/5491

TBR=henrike@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1882004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4408 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-07-26 00:55:46 +00:00
fischman@webrtc.org
c6d5b50b41 AppRTCDemo: build fixes for iOS build in webrtc
BUG=1421,1450,1451
TESTED=git try, also the same patch (along with a bunch of other, non-webrtc changes) in a libjingle checkout allows building iOS AppRTCDemo
R=andrew@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1829004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4371 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-07-18 02:02:07 +00:00
henrike@webrtc.org
42581545eb Fixes: Resolves conflict that will happen when merging libjingle's and WebRTC's supplemental.gyp. By separating build_with_chromium and build_with_libjingle one can now just define build_with_libjingle in libjingle's supplemental.gyp. Once that is done it will be possible to merge the two supplemental.gyp-files. I.e. in WebRTC the supplemental.gyp would only set build_with_chromium to 0 since there is no longer any reason to disable logging and tests as they will be accessible in the same repository as libjingle.
Libjingle sets the variables here: https://code.google.com/p/libjingle/source/browse/trunk/talk/supplement.gypi

BUG=N/A
R=andrew@webrtc.org, fischman@webrtc.org, wu@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1787005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4354 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-07-16 16:37:22 +00:00
stefan@webrtc.org
f56d612c70 Create gyp target for bwe components.
R=henrikg@webrtc.org, tommi@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1775004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4311 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-07-09 12:32:35 +00:00
henrike@webrtc.org
a2073af728 Fixes build breakage when building WebRTC in Chromium and having include_tests=1.
TBR=fischman@webrtc.org

BUG=N/A

Review URL: https://webrtc-codereview.appspot.com/1770004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4305 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-07-08 18:14:58 +00:00
henrike@webrtc.org
1303af31d6 Makes it possible to build ndk-apks of native unit tests if the workspace is inside a chromium checkout.
Alternative solution to http://webrtc-codereview.appspot.com/1748004/.

BUG=N/A
R=andrew@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1753006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4294 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-07-03 21:50:33 +00:00
sergeyu@chromium.org
6ebfd346ae Add direct_dependent_settings in common.gypi.
When building chromium targets that depend on webrtc, compiler settings must
have the include path to webrtc and webrtc-specific defines that the headers
may depend on. Added direct_dependent_settings in common.gyp, so that all
webrtc target propagate these settings to dependencies.

R=andrew@webrtc.org, tommi@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1371005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4084 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-05-22 18:22:21 +00:00
andrew@webrtc.org
f9825e50f3 Revert 4000 "Reverting r3978"
> Reverting r3978
> 
> BUG=webrtc:1749
> R=niklas.enbom@webrtc.org
> 
> Review URL: https://webrtc-codereview.appspot.com/1454004

TBR=elham@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1516004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4071 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-05-20 21:18:04 +00:00
elham@webrtc.org
05ea12f12e Reverting r3978
BUG=webrtc:1749
R=niklas.enbom@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1454004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4000 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-05-10 17:04:59 +00:00
andrew@webrtc.org
b55a12ad32 Enable protobuf use in Chromium.
We might end up reverting this, but we need to get it committed and merged to
stable in order to test in a webrtc roll.

TBR=niklas.enbom
BUG=webrtc:830

Review URL: https://webrtc-codereview.appspot.com/1439004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3978 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-05-08 00:03:30 +00:00
sergeyu@chromium.org
23516638fa Move WEBRTC_THREAD_RR and WEBRTC_CLOCK_TYPE_REALTIME to system_wrappers.gypi .
WEBRTC_THREAD_RR and WEBRTC_CLOCK_TYPE_REALTIME are used only in code compiled
in system_wrappers, so they don't need to be in common.gypi.

R=andrew@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1368005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3926 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-04-30 22:53:51 +00:00
mikhal@webrtc.org
4cea79b830 Removing another instance of file api
Review URL: https://webrtc-codereview.appspot.com/1356004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3906 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-04-25 23:31:27 +00:00
mikhal@webrtc.org
b84f13f185 Disabling avi file interface
Review URL: https://webrtc-codereview.appspot.com/1351004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3900 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-04-25 18:07:32 +00:00
andrew@webrtc.org
5140e24037 MIPS optimizations for Signal Processing Library patch01
Review URL: https://webrtc-codereview.appspot.com/1028004
Patch from Ljubomir Papuga <lpapuga@mips.com>.

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3557 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-02-21 20:12:21 +00:00
fischman@webrtc.org
f61e02c81f Misc cleanups to webrtc/android code:
- Replace some deprecated calls/enums with their more modern equivalents.
- Clean up some usage of global data and/or hide it better
- Catch specific exceptions instead of Exception, and log the exception instead
  of just its message.
- Random log message cleanups
- Added a build_with_libjingle gyp variable to mimic build_with_chromium for
  when webrtc is built as part of a libjingle project but not part of chromium.

BUG=webrtc:1169
TEST=none

Review URL: https://webrtc-codereview.appspot.com/1105010

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3554 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-02-20 23:13:46 +00:00
kjellander@webrtc.org
fa53d8717c Fixing/disabling Windows x64 warnings
Disabled MSVC #4267 warnings in common.gypi to enable x64 builds
for Windows.
Fixed MSVC #4267 warnings in test/testsupport.
Added third_party/directxsdk to .gitignore.

With http://review.webrtc.org/1070008 landed, this should make it possible
to build for x64 on Windows.

BUG=1348
TEST=Compiling with http://review.webrtc.org/1070008 applied:
set GYP_DEFINES="target_arch=x64"
set GYP_GENERATORS=ninja
gclient sync
ninja -C out\Debug_x64

Review URL: https://webrtc-codereview.appspot.com/1060008

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3464 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-02-04 10:07:17 +00:00
kjellander@webrtc.org
e1888af9df Add <(DEPTH) to global includes
With http://review.webrtc.org/1064004 we got use of headers in testing/ for the first time in production code (which is what gtest_prod.h is meant for). This showed that when WebRTC is built inside Chrome, the include path doesn't include the top-level directory, so testing/gtest/ could not be found.

By adding <(DEPTH) to the WebRTC global include path list in common.gypi, this is resolved.

Having this directory in the global include path list will also make it possible for us to use full paths for common third party libraries, which should be something we aim for.

BUG=none
TEST=Successfully compiled the  webrtc_test_tools target on Linux in a Chromium checkout with third_party/webrtc replaced by ToT trunk with this patch applied (with Python 2.6 installed, which is needed to get the pyautolib target generated).

Review URL: https://webrtc-codereview.appspot.com/1082004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3421 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-01-28 20:00:03 +00:00
wjia@webrtc.org
b119369cdc Fix android clang build.
no-builtin-cos|sin|cosf|sinf are not used for some files (g711.c, g711_interface.c, g722_encode.c, g722_decode.c, g722_interface.c, pcm16b.c).
Review URL: https://webrtc-codereview.appspot.com/1032006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3369 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-01-12 01:52:07 +00:00
leozwang@webrtc.org
be86a6d968 Explicitly disable sincos optimization on Android.
I uploaded this CL before, now it turned out that although it's an
issue in compiler, but it will not be solved in short term, we have
to work around in our code termporally.

We can chat in person if you want to know more details.

BUG=
TEST=trybots
Review URL: https://webrtc-codereview.appspot.com/1026006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3358 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-01-10 22:15:51 +00:00
leozwang@webrtc.org
56a1c2cc20 Enable java soundcard impl as the default
BUG=None
TEST=trybots
Review URL: https://webrtc-codereview.appspot.com/974006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3192 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-11-29 03:13:00 +00:00
andrew@webrtc.org
c3e5d3422b Add a logging_no_op.cc when enable_tracing==0.
This should hopefully fix static initializer warnings when rolling webrtc
in Chromium.

TEST=logging_unittest succeeds with enable_tracing==1 and fails appropriately with enable_tracing==0.

Review URL: https://webrtc-codereview.appspot.com/939026

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3159 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-11-23 19:30:59 +00:00
wjia@webrtc.org
5c38d909b3 Define enable_android_opensl when built with chromium.
Review URL: https://webrtc-codereview.appspot.com/930023

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3126 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-11-19 01:41:59 +00:00
andrew@webrtc.org
50419b0777 Add libjingle-style stream-style logging.
Add a highly stripped-down version of libjingle's base/logging.h. It is
a thin wrapper around WEBRTC_TRACE, maintaining the libjingle log
semantics to ease a transition to that format.

Also add some helper macros for easy API and function failure logging.

Review URL: https://webrtc-codereview.appspot.com/931010

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3099 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-11-14 19:07:54 +00:00
leozwang@webrtc.org
6f19b1b651 Enable Opus
BUG=webrtc issue 992
TEST=trybots
Review URL: https://webrtc-codereview.appspot.com/942004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3012 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-10-27 17:46:55 +00:00
tina.legrand@webrtc.org
1f8c02a4de Getting Opus from Chrome
This CL replaces http://review.webrtc.org/921006/

BUG=issue982

TBR=andrew@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/933006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2993 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-10-25 12:37:08 +00:00
niklas.enbom@webrtc.org
87736720eb Enable Opus for Chrome
Review URL: https://webrtc-codereview.appspot.com/935005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2984 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-10-24 20:12:54 +00:00
andrew@webrtc.org
be8ec386c4 Fix a few include paths and update include TODO.
TBR=wu@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/919007

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2967 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-10-22 21:51:58 +00:00
andrew@webrtc.org
14b43beb7c Move src/ -> webrtc/
TBR=niklas.enbom@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/915006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2963 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-10-22 18:19:23 +00:00