1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "base/bind.h" 6 #include "base/test/launcher/unit_test_launcher.h" 7 #include "content/public/test/unittest_test_suite.h" 8 #include "content/test/content_test_suite.h" 9 10 #if defined(OS_ANDROID) 11 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" 12 #endif 13 14 int main(int argc, char** argv) { 15 #if defined(OS_ANDROID) 16 // Android wants to call GetChannelId() (even though GPU channels 17 // are not getting created in content_unittests). 18 content::BrowserGpuChannelHostFactory::Initialize(false); 19 #endif 20 content::UnitTestTestSuite test_suite( 21 new content::ContentTestSuite(argc, argv)); 22 23 return base::LaunchUnitTests( 24 argc, argv, base::Bind(&content::UnitTestTestSuite::Run, 25 base::Unretained(&test_suite))); 26 } 27