Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-3879

Incorrect and inconsistent include order for <gmock/gmock.h> and <gtest/gtest.h>.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • Mesosphere Sprint 22
    • 1

    Description

      We currently have an inconsistent (and mostly incorrect) include order for <gmock/gmock.h> and <gtest/gtest.h> (see below). Some files include them (incorrectly) between the c and cpp standard header, while other correclt include them afterwards. According to the Google Styleguide the second include order is correct.

      external_containerizer_test.cpp
      #include <unistd.h>
      
      #include <gmock/gmock.h>
      
      #include <string>
      
      launcher.hpp
      #include <vector>
      
      #include <gmock/gmock.h>
      

      Attachments

        Activity

          People

            js84 Jörg Schad
            js84 Jörg Schad
            Till Toenshoff Till Toenshoff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: