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

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

Issue 830002: win: string_util.h -> utf_string_conversions.h fix. (Closed)
Patch Set: Don't remove utf_string_conversions.h from string_util.h just yet Created 10 years, 9 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
« no previous file with comments | « chrome_frame/np_event_listener.cc ('k') | chrome_frame/utils.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) 2006-2008 The Chromium Authors. All rights reserved. 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 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 "chrome_frame/test/chrome_frame_test_utils.h" 5 #include "chrome_frame/test/chrome_frame_test_utils.h"
6 6
7 #include <atlbase.h> 7 #include <atlbase.h>
8 #include <atlwin.h> 8 #include <atlwin.h>
9 #include <iepmapi.h> 9 #include <iepmapi.h>
10 #include <sddl.h> 10 #include <sddl.h>
11 11
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/path_service.h" 14 #include "base/path_service.h"
15 #include "base/registry.h" // to find IE and firefox 15 #include "base/registry.h" // to find IE and firefox
16 #include "base/scoped_handle.h" 16 #include "base/scoped_handle.h"
17 #include "base/scoped_comptr_win.h" 17 #include "base/scoped_comptr_win.h"
18 #include "base/string_util.h" 18 #include "base/utf_string_conversions.h"
19 #include "base/win_util.h" 19 #include "base/win_util.h"
20 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
21 #include "chrome_frame/utils.h" 21 #include "chrome_frame/utils.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 namespace chrome_frame_test { 24 namespace chrome_frame_test {
25 25
26 const int kDefaultWaitForIEToTerminateMs = 10 * 1000; 26 const int kDefaultWaitForIEToTerminateMs = 10 * 1000;
27 27
28 const wchar_t kIEImageName[] = L"iexplore.exe"; 28 const wchar_t kIEImageName[] = L"iexplore.exe";
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 _ATL_FUNC_INFO WebBrowserEventSink::kFileDownloadInfo = { 420 _ATL_FUNC_INFO WebBrowserEventSink::kFileDownloadInfo = {
421 CC_STDCALL, VT_EMPTY, 2, { 421 CC_STDCALL, VT_EMPTY, 2, {
422 VT_BOOL, 422 VT_BOOL,
423 VT_BOOL | VT_BYREF 423 VT_BOOL | VT_BYREF
424 } 424 }
425 }; 425 };
426 426
427 // WebBrowserEventSink member defines 427 // WebBrowserEventSink member defines
428 void WebBrowserEventSink::Attach(IDispatch* browser_disp) { 428 void WebBrowserEventSink::Attach(IDispatch* browser_disp) {
429 EXPECT_TRUE(NULL != browser_disp); 429 EXPECT_TRUE(NULL != browser_disp);
430 if(browser_disp) { 430 if (browser_disp) {
431 EXPECT_HRESULT_SUCCEEDED(web_browser2_.QueryFrom(browser_disp)); 431 EXPECT_HRESULT_SUCCEEDED(web_browser2_.QueryFrom(browser_disp));
432 EXPECT_TRUE(S_OK == DispEventAdvise(web_browser2_, 432 EXPECT_TRUE(S_OK == DispEventAdvise(web_browser2_,
433 &DIID_DWebBrowserEvents2)); 433 &DIID_DWebBrowserEvents2));
434 } 434 }
435 } 435 }
436 436
437 void WebBrowserEventSink::Uninitialize() { 437 void WebBrowserEventSink::Uninitialize() {
438 DisconnectFromChromeFrame(); 438 DisconnectFromChromeFrame();
439 if (web_browser2_.get()) { 439 if (web_browser2_.get()) {
440 DispEventUnadvise(web_browser2_); 440 DispEventUnadvise(web_browser2_);
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 void WebBrowserEventSink::WatchChromeWindow(const wchar_t* window_class) { 753 void WebBrowserEventSink::WatchChromeWindow(const wchar_t* window_class) {
754 DCHECK(window_class); 754 DCHECK(window_class);
755 window_watcher_.AddObserver(this, WideToUTF8(window_class)); 755 window_watcher_.AddObserver(this, WideToUTF8(window_class));
756 } 756 }
757 757
758 void WebBrowserEventSink::StopWatching() { 758 void WebBrowserEventSink::StopWatching() {
759 window_watcher_.RemoveObserver(this); 759 window_watcher_.RemoveObserver(this);
760 } 760 }
761 761
762 } // namespace chrome_frame_test 762 } // namespace chrome_frame_test
OLDNEW
« no previous file with comments | « chrome_frame/np_event_listener.cc ('k') | chrome_frame/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698