Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: ui/views/run_all_unittests.cc

Issue 1972363002: mus: Add views_mus_interactive_ui_tests target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: similarity Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/test/launcher/unit_test_launcher.h" 9 #include "base/test/launcher/unit_test_launcher.h"
10 #include "base/test/test_suite.h" 10 #include "base/test/test_suite.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 }; 55 };
56 56
57 int RunAllUnittests(int argc, char** argv) { 57 int RunAllUnittests(int argc, char** argv) {
58 ViewTestSuite test_suite(argc, argv); 58 ViewTestSuite test_suite(argc, argv);
59 59
60 return base::LaunchUnitTests( 60 return base::LaunchUnitTests(
61 argc, argv, base::Bind(&ViewTestSuite::Run, 61 argc, argv, base::Bind(&ViewTestSuite::Run,
62 base::Unretained(&test_suite))); 62 base::Unretained(&test_suite)));
63 } 63 }
64 64
65 int RunAllUnittestsSerially(int argc, char** argv) {
66 ViewTestSuite test_suite(argc, argv);
67
68 return base::LaunchUnitTestsSerially(
69 argc, argv,
70 base::Bind(&ViewTestSuite::Run, base::Unretained(&test_suite)));
71 }
72
65 } // namespace views 73 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698