Move FrameGeneratorCapturerConfig and Create family methods

Move FrameGeneratorCapturerConfig and Create family methods from
frame_generator_capturer.h to the create_frame_generator_capturer.h

Bug: b/272350185
Change-Id: I95674f5238ac0d0a5e395840bbab7f205b160c37
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/301220
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39850}
diff --git a/test/frame_generator_capturer_unittest.cc b/test/frame_generator_capturer_unittest.cc
index 0098b0e..8bf70cf 100644
--- a/test/frame_generator_capturer_unittest.cc
+++ b/test/frame_generator_capturer_unittest.cc
@@ -9,6 +9,8 @@
  */
 
 #include "test/frame_generator_capturer.h"
+
+#include "test/create_frame_generator_capturer.h"
 #include "test/gmock.h"
 #include "test/gtest.h"
 #include "test/time_controller/simulated_time_controller.h"
@@ -36,7 +38,7 @@
   config.squares_video->width = 300;
   config.squares_video->height = 200;
   config.squares_video->framerate = 20;
-  auto capturer = FrameGeneratorCapturer::Create(
+  auto capturer = CreateFrameGeneratorCapturer(
       time.GetClock(), *time.GetTaskQueueFactory(), config);
   testing::StrictMock<MockVideoSinkInterfaceVideoFrame> mock_sink;
   capturer->AddOrUpdateSink(&mock_sink, rtc::VideoSinkWants());
@@ -52,7 +54,7 @@
   config.squares_video->width = kWidth;
   config.squares_video->height = kHeight;
   config.squares_video->framerate = 20;
-  auto capturer = FrameGeneratorCapturer::Create(
+  auto capturer = CreateFrameGeneratorCapturer(
       time.GetClock(), *time.GetTaskQueueFactory(), config);
   testing::StrictMock<MockVideoSinkInterfaceVideoFrame> mock_sink;
   capturer->AddOrUpdateSink(&mock_sink, rtc::VideoSinkWants());
@@ -69,7 +71,7 @@
   config.squares_video->width = kWidth;
   config.squares_video->height = kHeight;
   config.squares_video->framerate = 20;
-  auto capturer = FrameGeneratorCapturer::Create(
+  auto capturer = CreateFrameGeneratorCapturer(
       time.GetClock(), *time.GetTaskQueueFactory(), config);
   EXPECT_TRUE(capturer->GetResolution());
   EXPECT_EQ(kWidth, capturer->GetResolution()->width);