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

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: merge 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
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..19e8c3866d9e7da1d0c2015b7c5d2fbcb46c3119
--- /dev/null
+++ b/chrome/browser/ui/browser_navigator_browsertest.h
@@ -0,0 +1,42 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
Evan Stade 2011/02/07 19:02:30 year
altimofeev 2011/02/08 14:21:00 Done.
+// 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/common/notification_type.h"
+#include "chrome/test/in_process_browser_test.h"
+
+#ifndef CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_
Evan Stade 2011/02/07 19:02:30 put header guards outside of includes
altimofeev 2011/02/08 14:21:00 Done.
+#define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_
+
+class GURL;
+class NotificationDetails;
+class NotificationSource;
+class Profile;
+class TabContentsWrapper;
+
+namespace browser {
+ class NavigateParams;
Evan Stade 2011/02/07 19:02:30 nit: no indent in namespaces
altimofeev 2011/02/08 14:21:00 Done.
+} // namespace browser
+
+class BrowserNavigatorTest : public InProcessBrowserTest,
Evan Stade 2011/02/07 19:02:30 class comment (who uses this?)
altimofeev 2011/02/08 14:21:00 Done.
+ 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_

Powered by Google App Engine
This is Rietveld 408576698