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

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

Issue 1589013: Switch renderer in Moniker patch... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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) 2006-2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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 #include "chrome_frame/test/test_with_web_server.h" 4 #include "chrome_frame/test/test_with_web_server.h"
5 5
6 #include "base/file_version_info.h" 6 #include "base/file_version_info.h"
7 #include "chrome/common/chrome_switches.h" 7 #include "chrome/common/chrome_switches.h"
8 #include "chrome/installer/util/install_util.h" 8 #include "chrome/installer/util/install_util.h"
9 #include "chrome/installer/util/helper.h" 9 #include "chrome/installer/util/helper.h"
10 #include "chrome_frame/utils.h" 10 #include "chrome_frame/utils.h"
11 #include "chrome_frame/test/chrome_frame_test_utils.h" 11 #include "chrome_frame/test/chrome_frame_test_utils.h"
12 12
13 const wchar_t kDocRoot[] = L"chrome_frame\\test\\data"; 13 const wchar_t kDocRoot[] = L"chrome_frame\\test\\data";
14 const int kLongWaitTimeout = 60 * 1000; 14 const int kLongWaitTimeout = 60 * 1000;
15 const int kShortWaitTimeout = 25 * 1000; 15 const int kShortWaitTimeout = 25 * 1000;
16 const int kChromeFrameLaunchDelay = 5; 16 const int kChromeFrameLaunchDelay = 5;
17 const int kChromeFrameLongNavigationTimeoutInSeconds = 10; 17 const int kChromeFrameLongNavigationTimeoutInSeconds = 10;
18 18
19 bool MonikerPatchEnabled() { 19 bool MonikerPatchEnabled() {
20 ProtocolPatchMethod patch_method = 20 ProtocolPatchMethod patch_method =
21 static_cast<ProtocolPatchMethod>( 21 static_cast<ProtocolPatchMethod>(
22 GetConfigInt(PATCH_METHOD_IBROWSER, kPatchProtocols)); 22 GetConfigInt(PATCH_METHOD_IBROWSER, kPatchProtocols));
23 LOG_IF(ERROR, patch_method != PATCH_METHOD_IBROWSER_AND_MONIKER) 23 LOG_IF(ERROR, patch_method != PATCH_METHOD_MONIKER)
24 << "Not running test. Moniker patch not enabled."; 24 << "Not running test. Moniker patch not enabled.";
25 return patch_method == PATCH_METHOD_IBROWSER_AND_MONIKER; 25 return patch_method == PATCH_METHOD_MONIKER;
26 } 26 }
27 27
28 class ChromeFrameTestEnvironment: public testing::Environment { 28 class ChromeFrameTestEnvironment: public testing::Environment {
29 public: 29 public:
30 ~ChromeFrameTestEnvironment() {} 30 ~ChromeFrameTestEnvironment() {}
31 void SetUp() { 31 void SetUp() {
32 ScopedChromeFrameRegistrar::RegisterDefaults(); 32 ScopedChromeFrameRegistrar::RegisterDefaults();
33 } 33 }
34 void TearDown() {} 34 void TearDown() {}
35 }; 35 };
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 EXPECT_EQ("OK", r.arguments()); 847 EXPECT_EQ("OK", r.arguments());
848 848
849 if (r.arguments().compare("OK") == 0) { 849 if (r.arguments().compare("OK") == 0) {
850 // Check how many requests we got for the cf page and check that it was 850 // Check how many requests we got for the cf page and check that it was
851 // a GET. 851 // a GET.
852 int requests = server.GetRequestCountForPage(kPages[1], "GET"); 852 int requests = server.GetRequestCountForPage(kPages[1], "GET");
853 EXPECT_EQ(1, requests); 853 EXPECT_EQ(1, requests);
854 } 854 }
855 } 855 }
856 856
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698