[email protected] | 1de7a17 | 2012-05-28 18:36:43 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 41f054c | 2011-07-26 17:11:43 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | d85fe1e | 2013-09-05 18:20:36 | [diff] [blame] | 5 | #include "base/bind.h" |
John Abd-El-Malek | 446d8a6 | 2015-12-10 18:25:01 | [diff] [blame] | 6 | #include "base/test/launcher/unit_test_launcher.h" |
sammc | 406822fa | 2017-02-07 22:22:03 | [diff] [blame] | 7 | #include "base/values.h" |
[email protected] | b1e3f20 | 2012-06-04 14:45:50 | [diff] [blame] | 8 | #include "content/public/test/unittest_test_suite.h" |
John Abd-El-Malek | 446d8a6 | 2015-12-10 18:25:01 | [diff] [blame] | 9 | #include "content/test/content_test_suite.h" |
rockot | a60bd4e | 2017-01-28 02:11:40 | [diff] [blame] | 10 | #include "content/test/content_unittests_catalog_source.h" |
rockot | 0a386b5d9 | 2017-01-25 00:14:34 | [diff] [blame] | 11 | #include "services/catalog/catalog.h" |
12 | |||||
[email protected] | 41f054c | 2011-07-26 17:11:43 | [diff] [blame] | 13 | int main(int argc, char** argv) { |
John Abd-El-Malek | fbada2c | 2015-11-24 06:38:15 | [diff] [blame] | 14 | content::UnitTestTestSuite test_suite( |
15 | new content::ContentTestSuite(argc, argv)); | ||||
rockot | 0a386b5d9 | 2017-01-25 00:14:34 | [diff] [blame] | 16 | |
rockot | a60bd4e | 2017-01-28 02:11:40 | [diff] [blame] | 17 | catalog::Catalog::SetDefaultCatalogManifest( |
18 | content::CreateContentUnittestsCatalog()); | ||||
rockot | 0a386b5d9 | 2017-01-25 00:14:34 | [diff] [blame] | 19 | |
[email protected] | d85fe1e | 2013-09-05 18:20:36 | [diff] [blame] | 20 | return base::LaunchUnitTests( |
21 | argc, argv, base::Bind(&content::UnitTestTestSuite::Run, | ||||
22 | base::Unretained(&test_suite))); | ||||
[email protected] | 41f054c | 2011-07-26 17:11:43 | [diff] [blame] | 23 | } |