[ios] Collect all functions under the same unnamed namespace

This CL is just a clean up to put all functions under the same unnamed
namespace. No logic changes.

Change-Id: Ic13d2131d01b96fc0b45e47f5869009306dfef15
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6237074
Commit-Queue: Asami Doi <asamidoi@chromium.org>
Auto-Submit: Asami Doi <asamidoi@chromium.org>
Reviewed-by: Mark Cogan <marq@chromium.org>
Commit-Queue: Mark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1416718}
NOKEYCHECK=True
GitOrigin-RevId: 2042a00b6e428b8de07089c1927257613d766250
diff --git a/chrome/test/app/sync_test_util.mm b/chrome/test/app/sync_test_util.mm
index 3533ca7..6e2e1d4 100644
--- a/chrome/test/app/sync_test_util.mm
+++ b/chrome/test/app/sync_test_util.mm
@@ -97,6 +97,35 @@
   return result;
 }
 
+// Adds a sync passphrase and returns its key_params.
+syncer::KeyParamsForTesting AddSyncPassphraseInternal(
+    const std::string& sync_passphrase) {
+  syncer::KeyParamsForTesting key_params =
+      syncer::Pbkdf2PassphraseKeyParamsForTesting(sync_passphrase);
+  fake_server::SetNigoriInFakeServer(
+      syncer::BuildCustomPassphraseNigoriSpecifics(key_params),
+      gSyncFakeServer.get());
+  return key_params;
+}
+
+// Adds SavedTabGroup `specifics` to the fake server.
+void AddDataToFakeServer(const sync_pb::SavedTabGroupSpecifics& specifics) {
+  sync_pb::EntitySpecifics group_entity_specifics;
+  sync_pb::SavedTabGroupSpecifics* group_specifics =
+      group_entity_specifics.mutable_saved_tab_group();
+  group_specifics->CopyFrom(specifics);
+
+  std::string client_tag = group_specifics->guid();
+  int64_t creation_time = group_specifics->creation_time_windows_epoch_micros();
+  int64_t update_time = group_specifics->update_time_windows_epoch_micros();
+
+  gSyncFakeServer->InjectEntity(
+      syncer::PersistentUniqueClientEntity::CreateFromSpecificsForTesting(
+          "non_unique_name", client_tag, group_entity_specifics,
+          /*creation_time=*/creation_time,
+          /*last_modified_time=*/update_time));
+}
+
 }  // namespace
 
 namespace chrome_test_util {
@@ -485,19 +514,6 @@
   history_service->DeleteURLs({url});
 }
 
-namespace {
-// Add a sync passphrase and returns its key_params.
-syncer::KeyParamsForTesting AddSyncPassphraseInternal(
-    const std::string& sync_passphrase) {
-  syncer::KeyParamsForTesting key_params =
-      syncer::Pbkdf2PassphraseKeyParamsForTesting(sync_passphrase);
-  fake_server::SetNigoriInFakeServer(
-      syncer::BuildCustomPassphraseNigoriSpecifics(key_params),
-      gSyncFakeServer.get());
-  return key_params;
-}
-}  // namespace
-
 void AddSyncPassphrase(const std::string& sync_passphrase) {
   AddSyncPassphraseInternal(sync_passphrase);
 }
@@ -517,26 +533,6 @@
   gSyncFakeServer->InjectEntity(std::move(server_entity));
 }
 
-namespace {
-// Adds SavedTabGroup `specifics` to the fake server.
-void AddDataToFakeServer(const sync_pb::SavedTabGroupSpecifics& specifics) {
-  sync_pb::EntitySpecifics group_entity_specifics;
-  sync_pb::SavedTabGroupSpecifics* group_specifics =
-      group_entity_specifics.mutable_saved_tab_group();
-  group_specifics->CopyFrom(specifics);
-
-  std::string client_tag = group_specifics->guid();
-  int64_t creation_time = group_specifics->creation_time_windows_epoch_micros();
-  int64_t update_time = group_specifics->update_time_windows_epoch_micros();
-
-  gSyncFakeServer->InjectEntity(
-      syncer::PersistentUniqueClientEntity::CreateFromSpecificsForTesting(
-          "non_unique_name", client_tag, group_entity_specifics,
-          /*creation_time=*/creation_time,
-          /*last_modified_time=*/update_time));
-}
-}  // namespace
-
 void AddGroupToFakeServer(const tab_groups::SavedTabGroup& group) {
   AddDataToFakeServer(
       tab_groups::SavedTabGroupSyncBridge::SavedTabGroupToSpecificsForTest(