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

Unified Diff: chrome/test/in_process_browser_test_browsertest.cc

Issue 7060003: Register parameterized tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed nit to comment namespace end. Created 9 years, 7 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 | « chrome/test/in_process_browser_test.h ('k') | chrome/test/out_of_proc_test_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/in_process_browser_test_browsertest.cc
diff --git a/chrome/test/in_process_browser_test_browsertest.cc b/chrome/test/in_process_browser_test_browsertest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2cdeee1479c45f72be21196135a5ac720d7493bc
--- /dev/null
+++ b/chrome/test/in_process_browser_test_browsertest.cc
@@ -0,0 +1,26 @@
+// 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.
+
+#include "chrome/test/in_process_browser_test.h"
+
+#include <string.h>
+
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace {
+
+class InProcessBrowserTestP
+ : public InProcessBrowserTest,
+ public ::testing::WithParamInterface<const char*> {
+};
+
+IN_PROC_BROWSER_TEST_P(InProcessBrowserTestP, TestP) {
+ EXPECT_EQ(0, strcmp("foo", GetParam()));
+}
+
+INSTANTIATE_TEST_CASE_P(IPBTP,
+ InProcessBrowserTestP,
+ ::testing::Values("foo"));
+
+} // namespace
« no previous file with comments | « chrome/test/in_process_browser_test.h ('k') | chrome/test/out_of_proc_test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698