190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved. 290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// found in the LICENSE file. 490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 5eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch#include "base/time/time.h" 690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#include "media/base/scoped_histogram_timer.h" 790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#include "testing/gtest/include/gtest/gtest.h" 890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)namespace media { 1090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 1190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)TEST(ScopedHistogramTimer, TwoTimersOneScope) { 1290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) SCOPED_UMA_HISTOGRAM_TIMER("TestTimer0"); 1390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) SCOPED_UMA_HISTOGRAM_TIMER("TestTimer1"); 1490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)} 1590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 16d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)} // namespace media 17