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

Unified Diff: tools/variations/unittest_data/expected_output.cc

Issue 1209743002: Generate a static struct from fieldtrial_testing_config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@codegen_nested_structs
Patch Set: add +x file permission Created 5 years, 5 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 | « tools/variations/unittest_data/expected_output.h ('k') | tools/variations/unittest_data/test_config.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/variations/unittest_data/expected_output.cc
diff --git a/tools/variations/unittest_data/expected_output.cc b/tools/variations/unittest_data/expected_output.cc
new file mode 100644
index 0000000000000000000000000000000000000000..95f032211668fbc313a60856ed6621ab922a5d12
--- /dev/null
+++ b/tools/variations/unittest_data/expected_output.cc
@@ -0,0 +1,40 @@
+// Copyright 2015 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.
+
+// GENERATED FROM THE SCHEMA DEFINITION AND DESCRIPTION IN
+// fieldtrial_testing_config_schema.json
+// test_config.json
+// DO NOT EDIT.
+
+#include "test_ouput.h"
+
+
+const FieldTrialGroupParams array_kFieldTrialConfig_params[] = {
+ {
+ "x",
+ "1",
+ },
+ {
+ "y",
+ "2",
+ },
+};
+const FieldTrialTestingGroup array_kFieldTrialConfig_groups[] = {
+ {
+ "TestStudy1",
+ "TestGroup1",
+ NULL,
+ 0,
+ },
+ {
+ "TestStudy2",
+ "TestGroup2",
+ array_kFieldTrialConfig_params,
+ 2,
+ },
+};
+const FieldTrialTestingConfig kFieldTrialConfig = {
+ array_kFieldTrialConfig_groups,
+ 2,
+};
« no previous file with comments | « tools/variations/unittest_data/expected_output.h ('k') | tools/variations/unittest_data/test_config.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698