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

Unified Diff: components/search_engines/search_engines_test_util.h

Issue 2479113002: Make extensions DSE persistent in browser prefs (Closed)
Patch Set: Updated after review, round 6 Created 4 years 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: components/search_engines/search_engines_test_util.h
diff --git a/components/search_engines/search_engines_test_util.h b/components/search_engines/search_engines_test_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..e1c8f47ab1df735535b0c37ab9a03d89a149163f
--- /dev/null
+++ b/components/search_engines/search_engines_test_util.h
@@ -0,0 +1,22 @@
+// Copyright 2016 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.
+
+#ifndef COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_TEST_UTIL_H_
+#define COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_TEST_UTIL_H_
+
+#include <string>
+
+struct TemplateURLData;
+
+// Generate TemplateUrlData structure useful for tests filled with values
Peter Kasting 2016/12/22 20:49:04 Nit: Url -> URL
Alexander Yashkin 2016/12/23 19:44:09 Done
+// autogenerated from provider_name param.
+std::unique_ptr<TemplateURLData> GenerateDummyTemplateURLData(
Peter Kasting 2016/12/22 20:49:04 I'm kinda surprised we don't have functions like t
Alexander Yashkin 2016/12/23 19:44:09 I think I saw several similar functions across cod
+ const std::string& provider_name);
+
+// Checks that the two TemplateURLs are similar. Does not check the id, the
+// date_created or the last_modified time. Neither pointer should be nullptr.
Peter Kasting 2016/12/22 20:49:04 Nit: In comments, just say "null".
Alexander Yashkin 2016/12/23 19:44:09 Done
+void ExpectSimilar(const TemplateURLData* expected,
+ const TemplateURLData* actual);
+
+#endif // COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_TEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698