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

Side by Side Diff: chrome/test/base/test_log_collector_win.h

Issue 9584017: New test infrastructure for producing verbose logs in failing tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
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 // The test log collector uses Event Tracing for Windows to collect all LOG()
6 // events at all levels (including all VLOG levels) from Chrome, Chrome Frame,
7 // and the test executable itself for each test into a temporary log file. At
8 // the conclusion of each test, the contents of the log file are regurgitated to
9 // stderr iff the test failed. In any case, the log file is promptly deleted.
10 //
11 // Test executables that wish to benefit from the collector's features (to
12 // produce verbose logs on test failure to aid in diagnosing flaky and/or
13 // failing tests, for example) must install the collector via
14 // |InstallTestLogCollector| before running tests (via RUN_ALL_TESTS(),
15 // TestSuite::Run(), etc).
16
17 #ifndef CHROME_TEST_BASE_TEST_LOG_COLLECTOR_WIN_H_
18 #define CHROME_TEST_BASE_TEST_LOG_COLLECTOR_WIN_H_
19 #pragma once
20
21 namespace testing {
22 class UnitTest;
23 }
24
25 // Installs the test log collector into |unit_test|. The collector cannot be
erikwright (departed) 2012/03/02 20:47:59 I infer that testing::UnitTest does not map to a s
grt (UTC plus 2) 2012/03/02 21:22:43 Correct. testing::UnitTest is the process-wide si
erikwright (departed) 2012/03/03 02:04:56 The comment at the top was relatively clear. It di
grt (UTC plus 2) 2012/03/03 02:31:59 I've had my head so far up Google Test's behind th
26 // installed in more than one unit test, although installation in the same is
27 // idempotent.
28 void InstallTestLogCollector(testing::UnitTest* unit_test);
29
30 #endif // CHROME_TEST_BASE_TEST_LOG_COLLECTOR_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698