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

Unified Diff: client/site_tests/example_UnitTest/src/main.cc

Issue 1597001: [Test Fixit] Code coverage test example. (Closed)
Patch Set: More cleanup - changed handling of perf dictionary. Created 10 years, 8 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
Index: client/site_tests/example_UnitTest/src/main.cc
diff --git a/client/site_tests/example_UnitTest/src/main.cc b/client/site_tests/example_UnitTest/src/main.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3a7ba8447a3807de15a50d055078e09548740c4e
--- /dev/null
+++ b/client/site_tests/example_UnitTest/src/main.cc
@@ -0,0 +1,15 @@
+// Copyright (c) 2010 The Chromium OS 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 "gtest/gtest.h"
+
+TEST(ExampleTest, All) {
+ // Test something
+ EXPECT_EQ(10, 10);
+}
+
+int main(int argc, char **argv) {
+ ::testing::InitGoogleTest(&argc, argv);
+ return RUN_ALL_TESTS();
+}

Powered by Google App Engine
This is Rietveld 408576698