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

Side by Side Diff: components/metrics/public/cpp/call_stack_profile_struct_traits_unittest.cc

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 <utility> 5 #include <utility>
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "components/metrics/public/interfaces/call_stack_profile_collector_test .mojom.h" 10 #include "components/metrics/public/interfaces/call_stack_profile_collector_test .mojom.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 83
84 private: 84 private:
85 mojo::Binding<CallStackProfileCollectorTest> binding_; 85 mojo::Binding<CallStackProfileCollectorTest> binding_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(CallStackProfileCollectorTestImpl); 87 DISALLOW_COPY_AND_ASSIGN(CallStackProfileCollectorTestImpl);
88 }; 88 };
89 89
90 class CallStackProfileStructTraitsTest : public testing::Test { 90 class CallStackProfileStructTraitsTest : public testing::Test {
91 public: 91 public:
92 CallStackProfileStructTraitsTest() : impl_(GetProxy(&proxy_)) {} 92 CallStackProfileStructTraitsTest() : impl_(MakeRequest(&proxy_)) {}
93 93
94 protected: 94 protected:
95 base::MessageLoop message_loop_; 95 base::MessageLoop message_loop_;
96 mojom::CallStackProfileCollectorTestPtr proxy_; 96 mojom::CallStackProfileCollectorTestPtr proxy_;
97 CallStackProfileCollectorTestImpl impl_; 97 CallStackProfileCollectorTestImpl impl_;
98 98
99 DISALLOW_COPY_AND_ASSIGN(CallStackProfileStructTraitsTest); 99 DISALLOW_COPY_AND_ASSIGN(CallStackProfileStructTraitsTest);
100 }; 100 };
101 101
102 // Checks serialization/deserialization of Module fields. 102 // Checks serialization/deserialization of Module fields.
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 CallStackProfileParams::PRESERVE_ORDER), 381 CallStackProfileParams::PRESERVE_ORDER),
382 &out)); 382 &out));
383 383
384 EXPECT_EQ(CallStackProfileParams::BROWSER_PROCESS, out.process); 384 EXPECT_EQ(CallStackProfileParams::BROWSER_PROCESS, out.process);
385 EXPECT_EQ(CallStackProfileParams::UI_THREAD, out.thread); 385 EXPECT_EQ(CallStackProfileParams::UI_THREAD, out.thread);
386 EXPECT_EQ(CallStackProfileParams::PROCESS_STARTUP, out.trigger); 386 EXPECT_EQ(CallStackProfileParams::PROCESS_STARTUP, out.trigger);
387 EXPECT_EQ(CallStackProfileParams::PRESERVE_ORDER, out.ordering_spec); 387 EXPECT_EQ(CallStackProfileParams::PRESERVE_ORDER, out.ordering_spec);
388 } 388 }
389 389
390 } // namespace metrics 390 } // namespace metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698