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

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

Issue 8467028: Enable DVLOG on non official release build based on the parameter passed for InitLogging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. Created 9 years, 1 month 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
« no previous file with comments | « base/logging_unittest.cc ('k') | base/test/test_suite.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 return new MessagePumpForUIStub(); 155 return new MessagePumpForUIStub();
156 } 156 }
157 157
158 } // namespace 158 } // namespace
159 159
160 void InitAndroidTestStub() { 160 void InitAndroidTestStub() {
161 logging::InitLogging(NULL, 161 logging::InitLogging(NULL,
162 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, 162 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG,
163 logging::DONT_LOCK_LOG_FILE, 163 logging::DONT_LOCK_LOG_FILE,
164 logging::DELETE_OLD_LOG_FILE, 164 logging::DELETE_OLD_LOG_FILE,
165 logging::ENABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); 165 logging::ENABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS,
166 logging::DISABLE_DLOG_FOR_NON_OFFICIAL_RELEASE_BUILDS);
166 // To view log output with IDs and timestamps use "adb logcat -v threadtime". 167 // To view log output with IDs and timestamps use "adb logcat -v threadtime".
167 logging::SetLogItems(false, // Process ID 168 logging::SetLogItems(false, // Process ID
168 false, // Thread ID 169 false, // Thread ID
169 false, // Timestamp 170 false, // Timestamp
170 false); // Tick count 171 false); // Tick count
171 172
172 PathService::RegisterProvider(&PathTestProviderAndroid, base::DIR_MODULE, 173 PathService::RegisterProvider(&PathTestProviderAndroid, base::DIR_MODULE,
173 base::DIR_MODULE + 1); 174 base::DIR_MODULE + 1);
174 PathService::RegisterProvider(&PathTestProviderAndroid, base::DIR_CACHE, 175 PathService::RegisterProvider(&PathTestProviderAndroid, base::DIR_CACHE,
175 base::DIR_CACHE + 1); 176 base::DIR_CACHE + 1);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 } 212 }
212 213
213 // TODO(michaelbai): The below PathProviderAndroid was added because we 214 // TODO(michaelbai): The below PathProviderAndroid was added because we
214 // excluded base_paths_android.cc which requires JNI to compile. Remove them 215 // excluded base_paths_android.cc which requires JNI to compile. Remove them
215 // when this file added. 216 // when this file added.
216 bool PathProviderAndroid(int key, FilePath* result) { 217 bool PathProviderAndroid(int key, FilePath* result) {
217 return false; 218 return false;
218 } 219 }
219 220
220 } // namespace base 221 } // namespace base
OLDNEW
« no previous file with comments | « base/logging_unittest.cc ('k') | base/test/test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698