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

Side by Side Diff: chrome_frame/test/test_scrubber.h

Issue 9460019: Reduce flakiness in chrome_frame_tests.exe by having each run in a clean environment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed compile break Created 8 years, 10 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 TestScrubber cleans up machine state between tests. This includes killing
robertshield 2012/02/27 21:13:42 The TestScrubber class isn't exposed to callers, f
grt (UTC plus 2) 2012/02/28 03:12:04 I changed "TestScrubber" to "test scrubber". Othe
6 // all Internet Explorer processes, killing all Chrome processes spawned by
7 // Chrome Frame, and deleting the user data directory. The scrubber must be
8 // installed before tests are run via |InstallTestScrubber|.
9 //
10 // Tests that use a non-standard user data directory must provide that directory
11 // to the scrubber via |OverrideDataDirectoryForThisTest()|.
12
13 #ifndef CHROME_FRAME_TEST_TEST_SCRUBBER_H_
14 #define CHROME_FRAME_TEST_TEST_SCRUBBER_H_
15 #pragma once
16
17 #include "base/string_piece.h"
robertshield 2012/02/27 21:13:42 I think you could forward declare StringPiece16 as
grt (UTC plus 2) 2012/02/28 03:12:04 I think that'd involve several forward decls since
18
19 namespace testing {
20 class UnitTest;
21 }
22
23 namespace chrome_frame_test {
24
25 // Install the scrubber in |unit_test| (call before RUN_ALL_TESTS).
26 void InstallTestScrubber(testing::UnitTest* unit_test);
27
28 // Override the user data directory for the current test.
robertshield 2012/02/27 21:13:42 I might be misreading the implementation, but it f
grt (UTC plus 2) 2012/02/28 03:12:04 Comments updated (here and at the top of the file)
29 void OverrideDataDirectoryForThisTest(const base::StringPiece16& user_data_dir);
30
31 } // namespace chrome_frame_test
32
33 #endif // CHROME_FRAME_TEST_TEST_SCRUBBER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698