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

Unified Diff: chrome/browser/ui/browser_navigator_browsertest.h

Issue 6272016: Prevent non-Incognito windows in the Guest session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser
Patch Set: fixed win warning + indent Created 9 years, 10 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/ui/browser_navigator.cc ('k') | chrome/browser/ui/browser_navigator_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_navigator_browsertest.h
diff --git a/chrome/browser/ui/browser_navigator_browsertest.h b/chrome/browser/ui/browser_navigator_browsertest.h
new file mode 100644
index 0000000000000000000000000000000000000000..0f18da53d7ba3035df16d4097b0eeba97ceddae6
--- /dev/null
+++ b/chrome/browser/ui/browser_navigator_browsertest.h
@@ -0,0 +1,45 @@
+// Copyright (c) 2011 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.
+
+#ifndef CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_
+#define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_
+
+#include "chrome/browser/ui/browser.h"
+#include "chrome/common/notification_type.h"
+#include "chrome/test/in_process_browser_test.h"
+
+class GURL;
+class NotificationDetails;
+class NotificationSource;
+class Profile;
+class TabContentsWrapper;
+
+namespace browser {
+struct NavigateParams;
+}
+
+// Browsertest class for testing the browser navigation. It is also a base class
+// for the |BrowserGuestModeNavigation| which tests navigation while in guest
+// mode.
+class BrowserNavigatorTest : public InProcessBrowserTest,
+ public NotificationObserver {
+ protected:
+ GURL GetGoogleURL() const;
+
+ browser::NavigateParams MakeNavigateParams() const;
+ browser::NavigateParams MakeNavigateParams(Browser* browser) const;
+
+ Browser* CreateEmptyBrowserForType(Browser::Type type, Profile* profile);
+
+ TabContentsWrapper* CreateTabContents();
+
+ void RunSuppressTest(WindowOpenDisposition disposition);
+
+ void Observe(NotificationType type, const NotificationSource& source,
+ const NotificationDetails& details);
+
+ size_t created_tab_contents_count_;
+};
+
+#endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/browser_navigator_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698