Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_SANITY_UNITTEST_H_ | |
| 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_SANITY_UNITTEST_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <string> | |
| 10 | |
| 11 #include "base/task.h" | |
| 12 #include "chrome/test/in_process_browser_test.h" | |
| 13 | |
| 14 class DevToolsWindow; | |
| 15 class RenderViewHost; | |
| 16 class TabContents; | |
| 17 | |
| 18 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
| |
| 19 public: | |
| 20 explicit CancelableQuitTask(const std::string& timeout_message); | |
| 21 | |
| 22 void cancel(); | |
| 23 virtual void Run(); | |
| 24 | |
| 25 private: | |
| 26 std::string timeout_message_; | |
| 27 bool cancelled_; | |
| 28 }; | |
| 29 | |
| 30 class DevToolsSanityTest : public InProcessBrowserTest { | |
| 31 public: | |
| 32 DevToolsSanityTest(); | |
| 33 | |
| 34 protected: | |
| 35 void RunTest(const std::string& test_name, const std::string& test_page); | |
| 36 void OpenDevToolsWindow(const std::string& test_page); | |
| 37 TabContents* GetInspectedTab(); | |
| 38 void CloseDevToolsWindow(); | |
| 39 | |
| 40 TabContents* client_contents_; | |
| 41 DevToolsWindow* window_; | |
| 42 RenderViewHost* inspected_rvh_; | |
| 43 }; | |
| 44 | |
| 45 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_SANITY_UNITTEST_H_ | |
| OLD | NEW |