Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: base/win/event_trace_controller_unittest.cc

Issue 1466413002: Update gtest to 786564fa4a3c, switch to googlemock in gtest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/win/event_trace_consumer_unittest.cc ('k') | base/win/event_trace_provider_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Unit tests for event trace controller. 5 // Unit tests for event trace controller.
6 6
7 #include <objbase.h> 7 #include <objbase.h>
8 #include <initguid.h> 8 #include <initguid.h>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/process/process_handle.h" 14 #include "base/process/process_handle.h"
15 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
16 #include "base/sys_info.h" 16 #include "base/sys_info.h"
17 #include "base/win/event_trace_controller.h" 17 #include "base/win/event_trace_controller.h"
18 #include "base/win/event_trace_provider.h" 18 #include "base/win/event_trace_provider.h"
19 #include "base/win/scoped_handle.h" 19 #include "base/win/scoped_handle.h"
20 #include "base/win/windows_version.h" 20 #include "base/win/windows_version.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/googletest/include/gtest/gtest.h"
22 22
23 namespace base { 23 namespace base {
24 namespace win { 24 namespace win {
25 25
26 namespace { 26 namespace {
27 27
28 DEFINE_GUID(kGuidNull, 28 DEFINE_GUID(kGuidNull,
29 0x0000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0); 29 0x0000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0);
30 30
31 const ULONG kTestProviderFlags = 0xCAFEBABE; 31 const ULONG kTestProviderFlags = 0xCAFEBABE;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 provider.WaitForCallback(); 234 provider.WaitForCallback();
235 235
236 // Session should have wound down. 236 // Session should have wound down.
237 EXPECT_EQ(0, provider.enable_level()); 237 EXPECT_EQ(0, provider.enable_level());
238 EXPECT_EQ(0, provider.enable_flags()); 238 EXPECT_EQ(0, provider.enable_flags());
239 } 239 }
240 } 240 }
241 241
242 } // namespace win 242 } // namespace win
243 } // namespace base 243 } // namespace base
OLDNEW
« no previous file with comments | « base/win/event_trace_consumer_unittest.cc ('k') | base/win/event_trace_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698