OLD | NEW |
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 <stdarg.h> | 5 #include <stdarg.h> |
6 #include <string.h> | 6 #include <string.h> |
7 | 7 |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 166 |
167 } // namespace | 167 } // namespace |
168 | 168 |
169 namespace base { | 169 namespace base { |
170 | 170 |
171 void InitAndroidTestLogging() { | 171 void InitAndroidTestLogging() { |
172 logging::InitLogging(NULL, | 172 logging::InitLogging(NULL, |
173 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, | 173 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, |
174 logging::DONT_LOCK_LOG_FILE, | 174 logging::DONT_LOCK_LOG_FILE, |
175 logging::DELETE_OLD_LOG_FILE, | 175 logging::DELETE_OLD_LOG_FILE, |
176 logging::ENABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); | 176 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); |
177 // To view log output with IDs and timestamps use "adb logcat -v threadtime". | 177 // To view log output with IDs and timestamps use "adb logcat -v threadtime". |
178 logging::SetLogItems(false, // Process ID | 178 logging::SetLogItems(false, // Process ID |
179 false, // Thread ID | 179 false, // Thread ID |
180 false, // Timestamp | 180 false, // Timestamp |
181 false); // Tick count | 181 false); // Tick count |
182 } | 182 } |
183 | 183 |
184 void InitAndroidTestPaths() { | 184 void InitAndroidTestPaths() { |
185 InitPathProvider(DIR_MODULE); | 185 InitPathProvider(DIR_MODULE); |
186 InitPathProvider(DIR_CACHE); | 186 InitPathProvider(DIR_CACHE); |
187 InitPathProvider(DIR_ANDROID_APP_DATA); | 187 InitPathProvider(DIR_ANDROID_APP_DATA); |
188 } | 188 } |
189 | 189 |
190 void InitAndroidTestMessageLoop() { | 190 void InitAndroidTestMessageLoop() { |
191 MessageLoop::InitMessagePumpForUIFactory(&CreateMessagePumpForUIStub); | 191 MessageLoop::InitMessagePumpForUIFactory(&CreateMessagePumpForUIStub); |
192 } | 192 } |
193 | 193 |
194 void InitAndroidTest() { | 194 void InitAndroidTest() { |
195 InitAndroidTestLogging(); | 195 InitAndroidTestLogging(); |
196 InitAndroidTestPaths(); | 196 InitAndroidTestPaths(); |
197 InitAndroidTestMessageLoop(); | 197 InitAndroidTestMessageLoop(); |
198 } | 198 } |
199 } // namespace base | 199 } // namespace base |
OLD | NEW |