Return-Path: X-Original-To: apmail-mesos-dev-archive@www.apache.org Delivered-To: apmail-mesos-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E6F9179A1 for ; Fri, 27 Mar 2015 17:37:56 +0000 (UTC) Received: (qmail 10537 invoked by uid 500); 27 Mar 2015 17:37:53 -0000 Delivered-To: apmail-mesos-dev-archive@mesos.apache.org Received: (qmail 10474 invoked by uid 500); 27 Mar 2015 17:37:53 -0000 Mailing-List: contact dev-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list dev@mesos.apache.org Received: (qmail 10311 invoked by uid 99); 27 Mar 2015 17:37:52 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2015 17:37:52 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id C6B5B1D55C0; Fri, 27 Mar 2015 17:37:51 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4736269788659072218==" MIME-Version: 1.0 Subject: Re: Review Request 31268: Wired up test allocator to allocator tests. From: "Michael Park" To: "Niklas Nielsen" , "Michael Park" , "Kapil Arya" Cc: "Alexander Rukletsov" , "mesos" Date: Fri, 27 Mar 2015 17:37:51 -0000 Message-ID: <20150327173751.15432.21481@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Michael Park" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/31268/ X-Sender: "Michael Park" References: <20150324144954.1505.56904@reviews.apache.org> In-Reply-To: <20150324144954.1505.56904@reviews.apache.org> Reply-To: "Michael Park" X-ReviewRequest-Repository: mesos --===============4736269788659072218== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On March 24, 2015, 2:49 p.m., Michael Park wrote: > > src/tests/master_allocator_tests.cpp, lines 123-126 > > > > > > Could we indent this similar to this example from `src/tests/isolator_tests.cpp`: > > > > ``` > > typedef ::testing::Types< > > CgroupsMemIsolatorProcess, > > CgroupsCpushareIsolatorProcess, > > CgroupsPerfEventIsolatorProcess> CgroupsIsolatorTypes; > > ``` > > > > ``` > > typedef ::testing::Types< > > HierarchicalDRFAllocator, > > tests::Module> AllocatorTypes; > > ``` > > Alexander Rukletsov wrote: > I don't know what is consistent here, `src/tests/cram_md5_authentication_tests.cpp` use the indentation I use. Also, clang-format gives something that is more similar to the way I propose. Yeah I did see the one from `src/tests/cram_md5_authentication_tests.cpp`. I think that one is long enough that we can't do too much better. I would prefer a style that visually separates the list of types with the resulting type. `clang-format` seems to format it as: ``` typedef ::testing::Types> AllocatorTypes; ``` which also visually separates the list of types and the resulting type so I'm ok with that also. Just explaining exactly what I was pushing for. Having said that, do whatever you feel is right here :) - Michael ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/31268/#review77572 ----------------------------------------------------------- On March 27, 2015, 4:27 p.m., Alexander Rukletsov wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/31268/ > ----------------------------------------------------------- > > (Updated March 27, 2015, 4:27 p.m.) > > > Review request for mesos, Kapil Arya, Michael Park, and Niklas Nielsen. > > > Bugs: MESOS-2160 > https://issues.apache.org/jira/browse/MESOS-2160 > > > Repository: mesos > > > Description > ------- > > Same typed tests are used for built-in and modularized allocators. > > > Diffs > ----- > > src/tests/master_allocator_tests.cpp 03a1bb8c92b44bc1ad1b5f5cff8d1fb971df2302 > > Diff: https://reviews.apache.org/r/31268/diff/ > > > Testing > ------- > > make check (Mac OS 10.9.5, CentOS 7.0) > > > Thanks, > > Alexander Rukletsov > > --===============4736269788659072218==--