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

Unified Diff: content/test/layout_browsertest.h

Issue 9693065: Run IDB layout test suite as browser tests instead of ui tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix some style stuff Created 8 years, 9 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 | « content/test/DEPS ('k') | content/test/layout_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/layout_browsertest.h
diff --git a/content/test/layout_browsertest.h b/content/test/layout_browsertest.h
new file mode 100644
index 0000000000000000000000000000000000000000..bfff60bd16b8c18b9286a458859df997bbda60fa
--- /dev/null
+++ b/content/test/layout_browsertest.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 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.
+
+#include "base/file_path.h"
+#include "base/scoped_temp_dir.h"
+#include "chrome/test/base/in_process_browser_test.h"
+
+class InProcessBrowserLayoutTest : public InProcessBrowserTest {
+ public:
+ explicit InProcessBrowserLayoutTest(const FilePath relative_layout_test_path);
+ virtual ~InProcessBrowserLayoutTest();
+
+ virtual void SetUpInProcessBrowserTestFixture() OVERRIDE;
+ void RunLayoutTest(const std::string& test_case_file_name);
+ void AddResourceForLayoutTest(const FilePath& parent_dir,
+ const FilePath& resource_name);
+
+ private:
+ void WriteModifiedFile(const std::string& test_case_file_name,
+ GURL* test_url);
+
+ FilePath our_original_layout_test_dir_;
+ FilePath original_relative_path_;
+ FilePath our_layout_test_temp_dir_;
+ ScopedTempDir scoped_temp_dir_;
+
+ DISALLOW_COPY_AND_ASSIGN(InProcessBrowserLayoutTest);
+};
« no previous file with comments | « content/test/DEPS ('k') | content/test/layout_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698