Index: chrome/test/data/webui/ntp4_test.h |
diff --git a/chrome/test/data/webui/ntp4_test.h b/chrome/test/data/webui/ntp4_test.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a45de124fe3ed24c8d91d5a0e05082a8d00925f1 |
--- /dev/null |
+++ b/chrome/test/data/webui/ntp4_test.h |
@@ -0,0 +1,26 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
Sheridan Rawlins
2012/03/07 22:25:36
2012
Danh Nguyen
2012/03/08 16:44:19
Done. Thanks.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_TEST_DATA_WEBUI_NTP4_TEST_H_ |
+#define CHROME_TEST_DATA_WEBUI_NTP4_TEST_H_ |
+#pragma once |
+ |
+#include "chrome/browser/prefs/pref_service.h" |
+#include "chrome/browser/profiles/profile.h" |
+#include "chrome/browser/ui/browser.h" |
+#include "chrome/browser/ui/webui/web_ui_browsertest.h" |
+#include "chrome/common/pref_names.h" |
Dan Beam
2012/03/07 22:49:45
move all except chrome/browser/ui/webui/web_ui_bro
Danh Nguyen
2012/03/08 16:44:19
Done.
|
+ |
+class NTP4LoggedInWebUITest : public WebUIBrowserTest { |
+ public: |
+ NTP4LoggedInWebUITest(); |
+ virtual ~NTP4LoggedInWebUITest(); |
+ |
+ // Sets the user name into the profile as if the user had logged in. |
+ void SetLoginName(const std::string& loginName); |
Sheridan Rawlins
2012/03/07 22:25:36
This can be protected:
Danh Nguyen
2012/03/08 16:44:19
Yes. Thanks.
|
+ |
+ DISALLOW_COPY_AND_ASSIGN(NTP4LoggedInWebUITest); |
Sheridan Rawlins
2012/03/07 22:25:36
needs to be in private: section to do any good ;-)
Dan Beam
2012/03/07 22:49:45
to add to what scr@ said, this macro creates copy
Danh Nguyen
2012/03/08 16:44:19
Doh! I should have checked the macro. I thought
Danh Nguyen
2012/03/08 16:44:19
Thanks, Dan.
|
+}; |
+ |
+#endif // CHROME_TEST_DATA_WEBUI_NTP4_TEST_H_ |