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

Side by Side Diff: mojo/runner/native_runner_unittest.cc

Issue 1121783003: Move navigations with POST or referrer to the shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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
« no previous file with comments | « mojo/runner/context.cc ('k') | mojo/runner/shell_test_base.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 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 "base/files/scoped_temp_dir.h" 5 #include "base/files/scoped_temp_dir.h"
6 #include "mojo/runner/context.h" 6 #include "mojo/runner/context.h"
7 #include "mojo/shell/application_manager.h" 7 #include "mojo/shell/application_manager.h"
8 #include "mojo/util/filename_util.h" 8 #include "mojo/util/filename_util.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 87 }
88 }; 88 };
89 89
90 TEST_F(NativeApplicationLoaderTest, DoesNotExist) { 90 TEST_F(NativeApplicationLoaderTest, DoesNotExist) {
91 base::ScopedTempDir temp_dir; 91 base::ScopedTempDir temp_dir;
92 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 92 ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
93 base::FilePath nonexistent_file(FILE_PATH_LITERAL("nonexistent.txt")); 93 base::FilePath nonexistent_file(FILE_PATH_LITERAL("nonexistent.txt"));
94 GURL url(util::FilePathToFileURL(temp_dir.path().Append(nonexistent_file))); 94 GURL url(util::FilePathToFileURL(temp_dir.path().Append(nonexistent_file)));
95 InterfaceRequest<ServiceProvider> services; 95 InterfaceRequest<ServiceProvider> services;
96 ServiceProviderPtr service_provider; 96 ServiceProviderPtr service_provider;
97 mojo::URLRequestPtr request(mojo::URLRequest::New());
98 request->url = mojo::String::From(url.spec());
97 application_manager_.ConnectToApplication( 99 application_manager_.ConnectToApplication(
98 url, GURL(), services.Pass(), service_provider.Pass(), base::Closure()); 100 request.Pass(), GURL(), services.Pass(), service_provider.Pass(),
101 base::Closure());
99 EXPECT_FALSE(state_.runner_was_created); 102 EXPECT_FALSE(state_.runner_was_created);
100 EXPECT_FALSE(state_.runner_was_started); 103 EXPECT_FALSE(state_.runner_was_started);
101 EXPECT_FALSE(state_.runner_was_destroyed); 104 EXPECT_FALSE(state_.runner_was_destroyed);
102 } 105 }
103 106
104 } // namespace 107 } // namespace
105 } // namespace runner 108 } // namespace runner
106 } // namespace mojo 109 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/runner/context.cc ('k') | mojo/runner/shell_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698