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

Side by Side Diff: gpu/command_buffer/service/gpu_tracer_unittest.cc

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include <map> 5 #include <map>
6 #include <set> 6 #include <set>
7 7
8 #include "gpu/command_buffer/service/gpu_service_test.h" 8 #include "gpu/command_buffer/service/gpu_service_test.h"
9 #include "gpu/command_buffer/service/gpu_tracer.h" 9 #include "gpu/command_buffer/service/gpu_tracer.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "ui/gl/gl_mock.h" 11 #include "ui/gl/gl_mock.h"
12 12
13 namespace gpu { 13 namespace gpu {
14 namespace gles2 { 14 namespace gles2 {
15 15
16 using ::testing::InvokeWithoutArgs;
17 using ::testing::Return; 16 using ::testing::Return;
18 using ::testing::ReturnRef;
19 using ::testing::ReturnPointee;
20 using ::testing::NotNull; 17 using ::testing::NotNull;
21 using ::testing::ElementsAreArray;
22 using ::testing::ElementsAre;
23 using ::testing::SetArrayArgument;
24 using ::testing::AtLeast; 18 using ::testing::AtLeast;
25 using ::testing::SetArgPointee;
26 using ::testing::Pointee;
27 using ::testing::Unused;
28 using ::testing::Invoke; 19 using ::testing::Invoke;
29 using ::testing::_; 20 using ::testing::_;
30 21
31 class MockOutputter : public Outputter { 22 class MockOutputter : public Outputter {
32 public: 23 public:
33 MockOutputter() {} 24 MockOutputter() {}
34 MOCK_METHOD3(Trace, 25 MOCK_METHOD3(Trace,
35 void(const std::string& name, int64 start_time, int64 end_time)); 26 void(const std::string& name, int64 start_time, int64 end_time));
36 27
37 protected: 28 protected:
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 215
225 TEST_F(GpuDisjointTimerTracerTest, GPUTrace) { 216 TEST_F(GpuDisjointTimerTracerTest, GPUTrace) {
226 // Test basic timer query functionality 217 // Test basic timer query functionality
227 { 218 {
228 DoTraceTest(); 219 DoTraceTest();
229 } 220 }
230 } 221 }
231 222
232 } // namespace gles2 223 } // namespace gles2
233 } // namespace gpu 224 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_scheduler.cc ('k') | gpu/command_buffer/service/memory_program_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698