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

Side by Side Diff: gpu/command_buffer/common/unittest_main.cc

Issue 10695047: Enable debugging code for non-official Android builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « build/common.gypi ('k') | skia/skia.gyp » ('j') | skia/skia.gyp » ('J')
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 "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "testing/gmock/include/gmock/gmock.h" 7 #include "testing/gmock/include/gmock/gmock.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "ui/gl/gl_implementation.h" 9 #include "ui/gl/gl_implementation.h"
10 10
11 int main(int argc, char** argv) { 11 int main(int argc, char** argv) {
12 // On Android, AtExitManager is created in
13 // testing/android/native_test_wrapper.cc before main() is called.
14 // The same thing is also done in base/test/test_suite.cc
15 #if !defined(OS_ANDROID)
12 base::AtExitManager exit_manager; 16 base::AtExitManager exit_manager;
17 #endif
13 gfx::InitializeGLBindings(gfx::kGLImplementationMockGL); 18 gfx::InitializeGLBindings(gfx::kGLImplementationMockGL);
14 CommandLine::Init(argc, argv); 19 CommandLine::Init(argc, argv);
15 testing::InitGoogleMock(&argc, argv); 20 testing::InitGoogleMock(&argc, argv);
16 return RUN_ALL_TESTS(); 21 return RUN_ALL_TESTS();
17 } 22 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | skia/skia.gyp » ('j') | skia/skia.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698