Updated system_wrappers_unittests to use the test_support_main target.

Review URL: http://webrtc-codereview.appspot.com/291012

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1048 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
kjellander@webrtc.org 2011-11-29 12:11:06 +00:00
parent 932ab18d32
commit c625c1010a
2 changed files with 5 additions and 7 deletions

View File

@ -14,18 +14,17 @@
#include "system_wrappers/interface/cpu_info.h"
#include "system_wrappers/interface/event_wrapper.h"
#include "system_wrappers/interface/trace.h"
#include "testsupport/fileutils.h"
using webrtc::CpuInfo;
using webrtc::CpuWrapper;
using webrtc::Trace;
// Only utilizes some of the cpu_info.h and cpu_wrapper.h code. Does not verify
// anything except that it doesn't crash.
// TODO(kjellander): Improve this test so it verifies the implementation
// executes as expected.
TEST(CpuWrapperTest, Usage) {
Trace::CreateTrace();
Trace::SetTraceFile("cpu_wrapper_unittest.txt");
std::string trace_file = webrtc::test::OutputPath() +
"cpu_wrapper_unittest.txt";
Trace::SetTraceFile(trace_file.c_str());
Trace::SetLevelFilter(webrtc::kTraceAll);
printf("Number of cores detected:%u\n", CpuInfo::DetectNumberOfCores());
CpuWrapper* cpu = CpuWrapper::CreateCpu();

View File

@ -165,7 +165,7 @@
'dependencies': [
'system_wrappers',
'<(webrtc_root)/../testing/gtest.gyp:gtest',
'<(webrtc_root)/../test/test.gyp:test_support',
'<(webrtc_root)/../test/test.gyp:test_support_main',
],
'sources': [
'cpu_wrapper_unittest.cc',
@ -174,7 +174,6 @@
'data_log_helpers_unittest.cc',
'data_log_c_helpers_unittest.c',
'data_log_c_helpers_unittest.h',
'<(webrtc_root)/../test/run_all_unittests.cc',
],
'conditions': [
['enable_data_logging==1', {