

Since I'm on Mac, I created convenient aliases for each version of Chrome that I have installed. The exact location will vary from platform to platform. See /737678.Ĭhrome should point to your installation of Chrome.

You can find out more about GoogleTest at its GitHub page.Note: Right now, you'll also want to include the -disable-gpu flag if you're running on Windows. You can also limit which tests are run using the -gtest_filter arg, e.g.: $ out / Default / unit_tests - gtest_filter = "BrowserListUnitTest.*" You can run the tests by running the unit_tests binary.

The unit_tests binary can be built by running the following command: $ autoninja - C out / Default unit_tests In the example above, the target is unit_tests. To see what target a given unit test or browser test file corresponds to, the following command can be used: $ gn refs out / Default - testonly = true - type = executable - all chrome / browser / ui / browser_list_unittest. Tests are split into multiple test targets based on their type and where they exist in the directory structure. This means if you launch Chrome from an SSH session, the UI output will be available in Chrome Remote Desktop. X11 - unix - maxdepth 1 - mindepth 1 - name 'X*' | Rather, you should use either $HOME or the absolute path: $ export PATH = "$PATH:$" ]] then export DISPLAY =: $ (įind / tmp /. When cloning depot_tools to your home directory do not use ~ on PATH, otherwise gclient runhooks will fail to run. Assuming you cloned depot_tools to /path/to/depot_tools: $ export PATH = "$PATH:/path/to/depot_tools" Install depot_toolsĬlone the depot_tools repository: $ git clone https : ///chromium/tools/depot_tools.gitĪdd depot_tools to the end of your PATH (you will probably want to put this in your ~/.bashrc or ~/.zshrc). See this bug for additional details on this. There may be additional Docker-specific issues during compilation.

If you choose to compile from within a container for whatever reason, you will need to make sure that the following tools are available: While it is not a common setup, Chromium compilation should work from within a Docker container. There are some instructions for other distros below, but they are mostly unsupported. Most development is done on Ubuntu (currently 18.04, Bionic Beaver).
