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

Side by Side Diff: ceee/ie/testing/mediumtest_ie_main.cc

Issue 4989002: Firing event to broker without worker thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 | « ceee/ie/testing/ie_unittest_main.cc ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Main function for large IE tests. 5 // Main function for large IE tests.
6 #include <atlbase.h> 6 #include <atlbase.h>
7 #include <atlcom.h> 7 #include <atlcom.h>
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "ceee/testing/utils/gflag_utils.h" 10 #include "ceee/testing/utils/gflag_utils.h"
11 #include "ceee/testing/utils/nt_internals.h" 11 #include "ceee/testing/utils/nt_internals.h"
12 #include "chrome/common/url_constants.h" 12 #include "chrome/common/url_constants.h"
13 #include "gmock/gmock.h" 13 #include "gmock/gmock.h"
14 #include "gtest/gtest.h" 14 #include "gtest/gtest.h"
15 15
16 16
17 // Stub for unittesting. 17 // Stub for unittesting.
18 namespace ceee_module_util { 18 namespace ceee_module_util {
19 19
20 LONG LockModule() { 20 LONG LockModule() {
21 return 0; 21 return 0;
22 } 22 }
23 LONG UnlockModule() { 23 LONG UnlockModule() {
24 return 0; 24 return 0;
25 } 25 }
26 void Lock() { 26 void Lock() {
27 } 27 }
28 void Unlock() { 28 void Unlock() {
29 } 29 }
30 void AddRefModuleWorkerThread() {
31 }
32 void ReleaseModuleWorkerThread() {
33 }
34 void FireEventToBroker(const std::string& event_name,
35 const std::string& event_args) {
36 }
37 30
38 } // namespace ceee_module_util 31 } // namespace ceee_module_util
39 32
40 33
41 // We're testing some ATL code that requires a module object. 34 // We're testing some ATL code that requires a module object.
42 class ObligatoryModule: public CAtlDllModuleT<ObligatoryModule> { 35 class ObligatoryModule: public CAtlDllModuleT<ObligatoryModule> {
43 }; 36 };
44 37
45 ObligatoryModule g_obligatory_atl_module; 38 ObligatoryModule g_obligatory_atl_module;
46 39
(...skipping 12 matching lines...) Expand all
59 52
60 // Obligatory Chrome base initialization. 53 // Obligatory Chrome base initialization.
61 CommandLine::Init(argc, argv); 54 CommandLine::Init(argc, argv);
62 base::AtExitManager at_exit_manager; 55 base::AtExitManager at_exit_manager;
63 56
64 // Needs to be called before we can use GURL. 57 // Needs to be called before we can use GURL.
65 chrome::RegisterChromeSchemes(); 58 chrome::RegisterChromeSchemes();
66 59
67 return RUN_ALL_TESTS(); 60 return RUN_ALL_TESTS();
68 } 61 }
OLDNEW
« no previous file with comments | « ceee/ie/testing/ie_unittest_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698