| 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 "content/test/blink_test_environment.h" | 5 #include "content/test/blink_test_environment.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // Flush any remaining messages before we kill ourselves. | 111 // Flush any remaining messages before we kill ourselves. |
| 112 // http://code.google.com/p/chromium/issues/detail?id=9500 | 112 // http://code.google.com/p/chromium/issues/detail?id=9500 |
| 113 base::RunLoop().RunUntilIdle(); | 113 base::RunLoop().RunUntilIdle(); |
| 114 | 114 |
| 115 if (RunningOnValgrind()) | 115 if (RunningOnValgrind()) |
| 116 blink::WebCache::clear(); | 116 blink::WebCache::clear(); |
| 117 delete test_environment; | 117 delete test_environment; |
| 118 test_environment = NULL; | 118 test_environment = NULL; |
| 119 } | 119 } |
| 120 | 120 |
| 121 void SetUpTestEnvironmentForUnitTests() { | |
| 122 SetUpBlinkTestEnvironment(); | |
| 123 } | |
| 124 | |
| 125 void TearDownTestEnvironment() { | |
| 126 TearDownBlinkTestEnvironment(); | |
| 127 } | |
| 128 | |
| 129 } // namespace content | 121 } // namespace content |
| OLD | NEW |