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

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

Issue 3443017: Committing http://codereview.chromium.org/3420004/show for grt@... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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/protocol_sink_wrap.cc ('k') | chrome_frame/test/util_unittests.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) 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 #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>
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 std::wstring path = chrome_frame_test::GetExecutableAppPath(kIEImageName); 401 std::wstring path = chrome_frame_test::GetExecutableAppPath(kIEImageName);
402 std::wstring version = GetExeVersion(path); 402 std::wstring version = GetExeVersion(path);
403 403
404 switch (version[0]) { 404 switch (version[0]) {
405 case '6': 405 case '6':
406 return IE_6; 406 return IE_6;
407 case '7': 407 case '7':
408 return IE_7; 408 return IE_7;
409 case '8': 409 case '8':
410 return IE_8; 410 return IE_8;
411 case '9':
412 return IE_9;
411 default: 413 default:
412 break; 414 break;
413 } 415 }
414 416
415 return IE_UNSUPPORTED; 417 return IE_UNSUPPORTED;
416 } 418 }
417 419
418 FilePath GetProfilePathForIE() { 420 FilePath GetProfilePathForIE() {
419 FilePath profile_path; 421 FilePath profile_path;
420 // Browsers without IDeleteBrowsingHistory in non-priv mode 422 // Browsers without IDeleteBrowsingHistory in non-priv mode
421 // have their profiles moved into "Temporary Internet Files". 423 // have their profiles moved into "Temporary Internet Files".
422 // The code below basically retrieves the version of IE and computes 424 // The code below basically retrieves the version of IE and computes
423 // the profile directory accordingly. 425 // the profile directory accordingly.
424 if (GetInstalledIEVersion() == IE_8) { 426 if (GetInstalledIEVersion() >= IE_8) {
425 profile_path = GetProfilePath(kIEProfileName); 427 profile_path = GetProfilePath(kIEProfileName);
426 } else { 428 } else {
427 profile_path = GetIETemporaryFilesFolder(); 429 profile_path = GetIETemporaryFilesFolder();
428 profile_path = profile_path.Append(L"Google Chrome Frame"); 430 profile_path = profile_path.Append(L"Google Chrome Frame");
429 } 431 }
430 return profile_path; 432 return profile_path;
431 } 433 }
432 434
433 FilePath GetTestDataFolder() { 435 FilePath GetTestDataFolder() {
434 FilePath test_dir; 436 FilePath test_dir;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 } 506 }
505 507
506 DLOG(INFO) << "Started crash_service.exe so you know if a test crashes!"; 508 DLOG(INFO) << "Started crash_service.exe so you know if a test crashes!";
507 // This sleep is to ensure that the crash service is done initializing, i.e 509 // This sleep is to ensure that the crash service is done initializing, i.e
508 // the pipe creation, etc. 510 // the pipe creation, etc.
509 Sleep(500); 511 Sleep(500);
510 return crash_service; 512 return crash_service;
511 } 513 }
512 514
513 } // namespace chrome_frame_test 515 } // namespace chrome_frame_test
OLDNEW
« no previous file with comments | « chrome_frame/protocol_sink_wrap.cc ('k') | chrome_frame/test/util_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698