frame_impl_browser_test_base.cc 894 B

12345678910111213141516171819202122232425
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "fuchsia_web/webengine/browser/frame_impl_browser_test_base.h"
  5. #include "base/files/file_path.h"
  6. #include "fuchsia_web/webengine/test/test_data.h"
  7. // TODO(crbug.com/1155378): Remove this and use default after updating tests in
  8. // frame_impl_browser_test_base.cc to use the appropriate base.
  9. FrameImplTestBase::FrameImplTestBase() {
  10. set_test_server_root(base::FilePath(kTestServerRoot));
  11. }
  12. void FrameImplTestBaseWithServer::SetUpOnMainThread() {
  13. FrameImplTestBase::SetUpOnMainThread();
  14. ASSERT_TRUE(test_server_handle_ =
  15. embedded_test_server()->StartAndReturnHandle());
  16. }
  17. FrameImplTestBaseWithServer::FrameImplTestBaseWithServer() {
  18. set_test_server_root(base::FilePath(kTestServerRoot));
  19. }