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

Side by Side Diff: mojo/application/application_test_base_chromium.cc

Issue 1139123006: Fork the mojo shell interfaces used by Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 7 months 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 "mojo/application/application_test_base_chromium.h" 5 #include "mojo/application/application_test_base_chromium.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "mojo/public/cpp/application/application_impl.h" 9 #include "mojo/application/public/cpp/application_impl.h"
10 #include "mojo/application/public/interfaces/application.mojom.h"
10 #include "mojo/public/cpp/bindings/binding.h" 11 #include "mojo/public/cpp/bindings/binding.h"
11 #include "mojo/public/cpp/environment/environment.h" 12 #include "mojo/public/cpp/environment/environment.h"
12 #include "mojo/public/cpp/system/message_pipe.h" 13 #include "mojo/public/cpp/system/message_pipe.h"
13 #include "mojo/public/interfaces/application/application.mojom.h"
14 14
15 namespace mojo { 15 namespace mojo {
16 namespace test { 16 namespace test {
17 17
18 namespace { 18 namespace {
19 // Share the application URL with multiple application tests. 19 // Share the application URL with multiple application tests.
20 String g_url; 20 String g_url;
21 21
22 // Application request handle passed from the shell in MojoMain, stored in 22 // Application request handle passed from the shell in MojoMain, stored in
23 // between SetUp()/TearDown() so we can (re-)intialize new ApplicationImpls. 23 // between SetUp()/TearDown() so we can (re-)intialize new ApplicationImpls.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 if (ShouldCreateDefaultRunLoop()) 141 if (ShouldCreateDefaultRunLoop())
142 Environment::DestroyDefaultRunLoop(); 142 Environment::DestroyDefaultRunLoop();
143 } 143 }
144 144
145 bool ApplicationTestBase::ShouldCreateDefaultRunLoop() { 145 bool ApplicationTestBase::ShouldCreateDefaultRunLoop() {
146 return true; 146 return true;
147 } 147 }
148 148
149 } // namespace test 149 } // namespace test
150 } // namespace mojo 150 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698