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

Side by Side Diff: base/test/test_support_android.cc

Issue 10885002: Disable DCHECKs in non-official release builds on Android. (Closed) Base URL: ssh://gerrit-int.chromium.org:29419/clank/chromium@master
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | content/app/android/library_loader_hooks.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | content/app/android/library_loader_hooks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698