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

Issue 4945001: Disable the chrome frame net tests on IE9 as the IE9 fails to connect at time... (Closed)

Created:
10 years, 1 month ago by ananta
Modified:
9 years, 6 months ago
Reviewers:
amit
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, amit
Visibility:
Public.

Description

Disable the chrome frame net tests on IE9 as the IE9 fails to connect at times to the python web server. This needs more investigation. TBR=amit Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66138

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -3 lines) Patch
M chrome_frame/test/net/fake_external_tab.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome_frame/test/net/fake_external_tab.cc View 2 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
ananta
10 years, 1 month ago (2010-11-13 01:31:53 UTC) #1
amit
10 years, 1 month ago (2010-11-13 07:21:32 UTC) #2
ok

On Fri, Nov 12, 2010 at 5:31 PM, <ananta@chromium.org> wrote:

> Reviewers: amit,
>
> Description:
> Disable the chrome frame net tests on IE9 as the IE9 fails to connect at
> times
> to
> the python web server. This needs more investigation.
>
> TBR=amit
>
>
> Please review this at http://codereview.chromium.org/4945001/
>
> SVN Base: svn://svn.chromium.org/chrome/trunk/src/
>
> Affected files:
>  M     chrome_frame/test/net/fake_external_tab.h
>  M     chrome_frame/test/net/fake_external_tab.cc
>
>
> Index: chrome_frame/test/net/fake_external_tab.cc
> ===================================================================
> --- chrome_frame/test/net/fake_external_tab.cc  (revision 65626)
> +++ chrome_frame/test/net/fake_external_tab.cc  (working copy)
> @@ -304,7 +304,7 @@
>   // done by TestSuite::Initialize.  We can't call the base class
>   // directly because it will attempt to initialize some things such as
>   // ICU that have already been initialized for this process.
> -  InitializeLogging();
> +  CFUrlRequestUnittestRunner::InitializeLogging();
>   base::Time::EnableHighResolutionTimer(true);
>
>   SuppressErrorDialogs();
> @@ -472,6 +472,15 @@
>  ObligatoryModule g_obligatory_atl_module;
>
>  int main(int argc, char** argv) {
> +  if (chrome_frame_test::GetInstalledIEVersion() == IE_9) {
> +    // Adding this here as the command line and the logging stuff gets
> +    // initialized in the NetTestSuite constructor. Did not want to break
> that.
> +    base::AtExitManager at_exit_manager_;
> +    CommandLine::Init(argc, argv);
> +    CFUrlRequestUnittestRunner::InitializeLogging();
> +    LOG(INFO) << "Not running ChromeFrame net tests on IE9";
> +    return 0;
> +  }
>   WindowWatchdog watchdog;
>   // See url_request_unittest.cc for these credentials.
>   SupplyProxyCredentials credentials("user", "secret");
> Index: chrome_frame/test/net/fake_external_tab.h
> ===================================================================
> --- chrome_frame/test/net/fake_external_tab.h   (revision 65626)
> +++ chrome_frame/test/net/fake_external_tab.h   (working copy)
> @@ -73,6 +73,9 @@
>
>   void StartTests();
>
> +  // Borrowed from TestSuite::Initialize().
> +  static void InitializeLogging();
> +
>  protected:
>   // This is the thread that runs all the UrlRequest tests.
>   // Within its context, the Initialize() and Shutdown() routines above
> @@ -82,8 +85,6 @@
>   static void TakeDownBrowser(CFUrlRequestUnittestRunner* me);
>
>  protected:
> -  // Borrowed from TestSuite::Initialize().
> -  void InitializeLogging();
>
>  protected:
>   ScopedHandle test_thread_;
>
>
>

Powered by Google App Engine
This is Rietveld 408576698