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

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
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() { 30 void AddRefBroker() {
31 } 31 }
32 void ReleaseModuleWorkerThread() { 32 void ReleaseBroker() {
33 } 33 }
34 void FireEventToBroker(const std::string& event_name, 34 void FireEventToBroker(const std::string& event_name,
35 const std::string& event_args) { 35 const std::string& event_args) {
36 } 36 }
37 37
38 } // namespace ceee_module_util 38 } // namespace ceee_module_util
39 39
40 40
41 // We're testing some ATL code that requires a module object. 41 // We're testing some ATL code that requires a module object.
42 class ObligatoryModule: public CAtlDllModuleT<ObligatoryModule> { 42 class ObligatoryModule: public CAtlDllModuleT<ObligatoryModule> {
(...skipping 16 matching lines...) Expand all
59 59
60 // Obligatory Chrome base initialization. 60 // Obligatory Chrome base initialization.
61 CommandLine::Init(argc, argv); 61 CommandLine::Init(argc, argv);
62 base::AtExitManager at_exit_manager; 62 base::AtExitManager at_exit_manager;
63 63
64 // Needs to be called before we can use GURL. 64 // Needs to be called before we can use GURL.
65 chrome::RegisterChromeSchemes(); 65 chrome::RegisterChromeSchemes();
66 66
67 return RUN_ALL_TESTS(); 67 return RUN_ALL_TESTS();
68 } 68 }
OLDNEW
« ceee/ie/plugin/toolband/toolband_module.cc ('K') | « 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