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

Side by Side Diff: chrome_frame/test/run_all_unittests.cc

Issue 218019: Initial import of the Chrome Frame codebase. Integration in chrome.gyp coming... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome_frame/test/perf/silverlight.cc ('k') | chrome_frame/test/test_server.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <atlbase.h>
6
7 #include "base/at_exit.h"
8 #include "base/platform_thread.h"
9 #include "base/process_util.h"
10 #include "base/test_suite.h"
11 #include "base/command_line.h"
12 #include "chrome/common/chrome_paths.h"
13
14 #include "chrome_frame/test_utils.h"
15
16 // To enable ATL-based code to run in this module
17 class ChromeFrameUnittestsModule
18 : public CAtlExeModuleT<ChromeFrameUnittestsModule> {
19 };
20
21 ChromeFrameUnittestsModule _AtlModule;
22
23 const wchar_t kNoRegistrationSwitch[] = L"no-registration";
24
25 int main(int argc, char **argv) {
26 base::EnableTerminationOnHeapCorruption();
27 PlatformThread::SetName("ChromeFrame tests");
28
29 TestSuite test_suite(argc, argv);
30
31 // If mini_installer is used to register CF, we use the switch
32 // --no-registration to avoid repetitive registration.
33 if (CommandLine::ForCurrentProcess()->HasSwitch(kNoRegistrationSwitch)) {
34 return test_suite.Run();
35 } else {
36 // Register paths needed by the ScopedChromeFrameRegistrar.
37 chrome::RegisterPathProvider();
38
39 // This will register the chrome frame in the build directory. It currently
40 // leaves that chrome frame registered once the tests are done. It must be
41 // constructed AFTER the TestSuite is created since TestSuites create THE
42 // AtExitManager.
43 // TODO(robertshield): Make these tests restore the original registration
44 // once done.
45 ScopedChromeFrameRegistrar registrar;
46
47 return test_suite.Run();
48 }
49 }
OLDNEW
« no previous file with comments | « chrome_frame/test/perf/silverlight.cc ('k') | chrome_frame/test/test_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698