Index: content/browser/debugger/devtools_sanity_unittest.h |
diff --git a/content/browser/debugger/devtools_sanity_unittest.h b/content/browser/debugger/devtools_sanity_unittest.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..99bebeb71ab3c2ddf2c6031539131f07d6937242 |
--- /dev/null |
+++ b/content/browser/debugger/devtools_sanity_unittest.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 CONTENT_BROWSER_DEBUGGER_DEVTOOLS_SANITY_UNITTEST_H_ |
+#define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_SANITY_UNITTEST_H_ |
+#pragma once |
+ |
+#include <string> |
+ |
+#include "base/task.h" |
+#include "chrome/test/in_process_browser_test.h" |
+ |
+class DevToolsWindow; |
+class RenderViewHost; |
+class TabContents; |
+ |
+class CancelableQuitTask : public Task { |
brettw
2011/07/06 16:56:32
Can you make this a member of DevToolsSanityTest s
Jói
2011/07/06 18:04:52
Taking another look at it, it's only used in chrom
|
+ public: |
+ explicit CancelableQuitTask(const std::string& timeout_message); |
+ |
+ void cancel(); |
+ virtual void Run(); |
+ |
+ private: |
+ std::string timeout_message_; |
+ bool cancelled_; |
+}; |
+ |
+class DevToolsSanityTest : public InProcessBrowserTest { |
+ public: |
+ DevToolsSanityTest(); |
+ |
+ protected: |
+ void RunTest(const std::string& test_name, const std::string& test_page); |
+ void OpenDevToolsWindow(const std::string& test_page); |
+ TabContents* GetInspectedTab(); |
+ void CloseDevToolsWindow(); |
+ |
+ TabContents* client_contents_; |
+ DevToolsWindow* window_; |
+ RenderViewHost* inspected_rvh_; |
+}; |
+ |
+#endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_SANITY_UNITTEST_H_ |