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

Side by Side Diff: chrome_frame/test_utils.cc

Issue 8013001: Remove the \servers build output directory and place Chrome Frame parts into the root output fold... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <algorithm> 5 #include <algorithm>
6 6
7 #include "chrome_frame/test_utils.h" 7 #include "chrome_frame/test_utils.h"
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlwin.h> 10 #include <atlwin.h>
(...skipping 11 matching lines...) Expand all
22 #include "chrome_frame/test/chrome_frame_test_utils.h" 22 #include "chrome_frame/test/chrome_frame_test_utils.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 const wchar_t kChromeFrameDllName[] = L"npchrome_frame.dll"; 25 const wchar_t kChromeFrameDllName[] = L"npchrome_frame.dll";
26 const wchar_t kChromeLauncherExeName[] = L"chrome_launcher.exe"; 26 const wchar_t kChromeLauncherExeName[] = L"chrome_launcher.exe";
27 27
28 FilePath GetChromeFrameBuildPath() { 28 FilePath GetChromeFrameBuildPath() {
29 FilePath build_path; 29 FilePath build_path;
30 PathService::Get(chrome::DIR_APP, &build_path); 30 PathService::Get(chrome::DIR_APP, &build_path);
31 31
32 FilePath dll_path = build_path.Append(L"servers"). 32 FilePath dll_path = build_path.Append(kChromeFrameDllName);
33 Append(kChromeFrameDllName);
34 33
35 if (!file_util::PathExists(dll_path)) { 34 if (!file_util::PathExists(dll_path)) {
36 // Well, dang.. try looking in the current directory. 35 // Well, dang.. try looking in the current directory.
37 dll_path = build_path.Append(kChromeFrameDllName); 36 dll_path = build_path.Append(kChromeFrameDllName);
38 } 37 }
39 38
40 if (!file_util::PathExists(dll_path)) { 39 if (!file_util::PathExists(dll_path)) {
41 // No luck, return something empty. 40 // No luck, return something empty.
42 dll_path = FilePath(); 41 dll_path = FilePath();
43 } 42 }
44 43
45 return dll_path; 44 return dll_path;
46 } 45 }
47 46
48 bool ScopedChromeFrameRegistrar::register_chrome_path_provider_ = false;; 47 bool ScopedChromeFrameRegistrar::register_chrome_path_provider_ = false;
49 48
50 // static 49 // static
51 void ScopedChromeFrameRegistrar::RegisterDefaults() { 50 void ScopedChromeFrameRegistrar::RegisterDefaults() {
52 if (!register_chrome_path_provider_) { 51 if (!register_chrome_path_provider_) {
53 chrome::RegisterPathProvider(); 52 chrome::RegisterPathProvider();
54 register_chrome_path_provider_ = true; 53 register_chrome_path_provider_ = true;
55 } 54 }
56 FilePath dll_path = GetChromeFrameBuildPath(); 55 FilePath dll_path = GetChromeFrameBuildPath();
57 RegisterAtPath(dll_path.value(), chrome_frame_test::GetTestBedType()); 56 RegisterAtPath(dll_path.value(), chrome_frame_test::GetTestBedType());
58 } 57 }
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 UOI_NAME, 341 UOI_NAME,
343 name, 342 name,
344 sizeof(name), 343 sizeof(name),
345 &needed)) { 344 &needed)) {
346 is_locked = lstrcmpi(name, L"default") != 0; 345 is_locked = lstrcmpi(name, L"default") != 0;
347 } 346 }
348 ::CloseDesktop(input_desk); 347 ::CloseDesktop(input_desk);
349 } 348 }
350 return is_locked; 349 return is_locked;
351 } 350 }
OLDNEW
« chrome_frame/chrome_launcher_utils.cc ('K') | « chrome_frame/test/test_with_web_server.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698