Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |