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

Unified Diff: components/policy/tools/generate_policy_source_test.py

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 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 | « components/policy/tools/generate_policy_source.py ('k') | components/prefs/command_line_pref_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/tools/generate_policy_source_test.py
diff --git a/components/policy/tools/generate_policy_source_test.py b/components/policy/tools/generate_policy_source_test.py
index 9de1bbba459e4b4a0a1bf6a8c061447b454b377c..0a426167a950f607f3d0c63a101b0903a6ae56a4 100755
--- a/components/policy/tools/generate_policy_source_test.py
+++ b/components/policy/tools/generate_policy_source_test.py
@@ -26,7 +26,7 @@ class CppGenerationTest(unittest.TestCase):
# Strings
stmts, expr = generate_policy_source._GenerateDefaultValue('foo')
self.assertListEqual([], stmts)
- self.assertEqual('base::MakeUnique<base::StringValue>("foo")', expr)
+ self.assertEqual('base::MakeUnique<base::Value>("foo")', expr)
# Empty list
stmts, expr = generate_policy_source._GenerateDefaultValue([])
@@ -39,7 +39,7 @@ class CppGenerationTest(unittest.TestCase):
self.assertListEqual([
'auto default_value = base::MakeUnique<base::ListValue>();',
'default_value->Append(base::MakeUnique<base::Value>(1));',
- 'default_value->Append(base::MakeUnique<base::StringValue>("2"));'
+ 'default_value->Append(base::MakeUnique<base::Value>("2"));'
], stmts)
self.assertEqual('std::move(default_value)', expr)
« no previous file with comments | « components/policy/tools/generate_policy_source.py ('k') | components/prefs/command_line_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698