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

Side by Side Diff: content/browser/web_contents/test_web_contents.h

Issue 10381140: Add a method to WebContentsTester to set the loading state of the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « no previous file | content/browser/web_contents/test_web_contents.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/web_contents/web_contents_impl.h" 9 #include "content/browser/web_contents/web_contents_impl.h"
10 #include "content/public/common/page_transition_types.h" 10 #include "content/public/common/page_transition_types.h"
(...skipping 13 matching lines...) Expand all
24 class TestWebContents : public WebContentsImpl, public WebContentsTester { 24 class TestWebContents : public WebContentsImpl, public WebContentsTester {
25 public: 25 public:
26 TestWebContents(BrowserContext* browser_context, SiteInstance* instance); 26 TestWebContents(BrowserContext* browser_context, SiteInstance* instance);
27 virtual ~TestWebContents(); 27 virtual ~TestWebContents();
28 28
29 // WebContentsTester implementation. 29 // WebContentsTester implementation.
30 virtual void CommitPendingNavigation() OVERRIDE; 30 virtual void CommitPendingNavigation() OVERRIDE;
31 virtual int GetNumberOfFocusCalls() OVERRIDE; 31 virtual int GetNumberOfFocusCalls() OVERRIDE;
32 virtual RenderViewHost* GetPendingRenderViewHost() const OVERRIDE; 32 virtual RenderViewHost* GetPendingRenderViewHost() const OVERRIDE;
33 virtual void NavigateAndCommit(const GURL& url) OVERRIDE; 33 virtual void NavigateAndCommit(const GURL& url) OVERRIDE;
34 virtual void TestSetIsLoading(bool value) OVERRIDE;
34 virtual void ProceedWithCrossSiteNavigation() OVERRIDE; 35 virtual void ProceedWithCrossSiteNavigation() OVERRIDE;
35 virtual void TestDidNavigate(RenderViewHost* render_view_host, 36 virtual void TestDidNavigate(RenderViewHost* render_view_host,
36 int page_id, 37 int page_id,
37 const GURL& url, 38 const GURL& url,
38 PageTransition transition) OVERRIDE; 39 PageTransition transition) OVERRIDE;
39 virtual void TestDidNavigateWithReferrer(RenderViewHost* render_view_host, 40 virtual void TestDidNavigateWithReferrer(RenderViewHost* render_view_host,
40 int page_id, 41 int page_id,
41 const GURL& url, 42 const GURL& url,
42 const Referrer& referrer, 43 const Referrer& referrer,
43 PageTransition transition) OVERRIDE; 44 PageTransition transition) OVERRIDE;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 bool expect_set_history_length_and_prune_; 96 bool expect_set_history_length_and_prune_;
96 scoped_refptr<const SiteInstanceImpl> 97 scoped_refptr<const SiteInstanceImpl>
97 expect_set_history_length_and_prune_site_instance_; 98 expect_set_history_length_and_prune_site_instance_;
98 int expect_set_history_length_and_prune_history_length_; 99 int expect_set_history_length_and_prune_history_length_;
99 int32 expect_set_history_length_and_prune_min_page_id_; 100 int32 expect_set_history_length_and_prune_min_page_id_;
100 }; 101 };
101 102
102 } // namespace content 103 } // namespace content
103 104
104 #endif // CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_ 105 #endif // CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/web_contents/test_web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698