Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/test/launcher/unit_test_launcher.h" | 6 #include "base/test/launcher/unit_test_launcher.h" |
| 7 #include "base/test/test_suite.h" | 7 #include "base/test/test_suite.h" |
| 8 | 8 |
| 9 namespace { | |
| 10 | |
| 11 class ProximityAuthTestSuite : public base::TestSuite { | |
|
blundell
2014/08/27 13:41:58
This isn't necessary. Instead, you'll just add you
Tim Song
2014/08/27 19:40:06
I would strongly like to have a separate executabl
Ilya Sherman
2014/08/27 19:44:48
My understanding is that the difficulty with addin
| |
| 12 public: | |
| 13 ProximityAuthTestSuite(int argc, char** argv) | |
| 14 : base::TestSuite(argc, argv) {} | |
| 15 | |
| 16 private: | |
| 17 DISALLOW_COPY_AND_ASSIGN(ProximityAuthTestSuite); | |
| 18 }; | |
| 19 | |
| 20 } // namespace | |
| 21 | |
| 9 int main(int argc, char** argv) { | 22 int main(int argc, char** argv) { |
| 10 base::TestSuite test_suite(argc, argv); | 23 ProximityAuthTestSuite test_suite(argc, argv); |
| 24 | |
| 11 return base::LaunchUnitTests(argc, | 25 return base::LaunchUnitTests(argc, |
| 12 argv, | 26 argv, |
| 13 base::Bind(&base::TestSuite::Run, | 27 base::Bind(&ProximityAuthTestSuite::Run, |
| 14 base::Unretained(&test_suite))); | 28 base::Unretained(&test_suite))); |
| 15 } | 29 } |
| OLD | NEW |