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

Unified Diff: chrome/browser/net/load_timing_observer_browsertest.cc

Issue 12094085: LoadTiming in net part 7: Hooking it all up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/load_timing_observer.cc ('k') | chrome/browser/net/load_timing_observer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/load_timing_observer_browsertest.cc
===================================================================
--- chrome/browser/net/load_timing_observer_browsertest.cc (revision 190428)
+++ chrome/browser/net/load_timing_observer_browsertest.cc (working copy)
@@ -1,44 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/tabs/tab_strip_model.h"
-#include "chrome/test/base/in_process_browser_test.h"
-#include "chrome/test/base/ui_test_utils.h"
-#include "content/public/browser/web_contents.h"
-#include "content/public/test/browser_test_utils.h"
-#include "googleurl/src/gurl.h"
-#include "net/test/test_server.h"
-
-class LoadTimingObserverTest : public InProcessBrowserTest {
- public:
- LoadTimingObserverTest() {}
-};
-
-// http://crbug.com/102030
-IN_PROC_BROWSER_TEST_F(LoadTimingObserverTest, DISABLED_CacheHitAfterRedirect) {
- ASSERT_TRUE(test_server()->Start());
- GURL cached_page = test_server()->GetURL("cachetime");
- std::string redirect = "server-redirect?" + cached_page.spec();
- ui_test_utils::NavigateToURL(browser(), cached_page);
- ui_test_utils::NavigateToURL(browser(), test_server()->GetURL(redirect));
-
- int response_start = 0;
- int response_end = 0;
- content::WebContents* contents =
- browser()->tab_strip_model()->GetActiveWebContents();
- ASSERT_TRUE(content::ExecuteScriptAndExtractInt(
- contents,
- "window.domAutomationController.send("
- " window.performance.timing.responseStart - "
- " window.performance.timing.navigationStart)",
- &response_start));
- ASSERT_TRUE(content::ExecuteScriptAndExtractInt(
- contents,
- "window.domAutomationController.send("
- " window.performance.timing.responseEnd - "
- " window.performance.timing.navigationStart)",
- &response_end));
- EXPECT_LE(response_start, response_end);
-}
« no previous file with comments | « chrome/browser/net/load_timing_observer.cc ('k') | chrome/browser/net/load_timing_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698