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

Side by Side Diff: mojo/shell/query_util_unittest.cc

Issue 1091513005: Separate mojo/shell into a runner and the application manager (shell) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 8 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/shell/query_util.cc ('k') | mojo/shell/shell_apptest.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/shell/application_manager/query_util.h" 5 #include "mojo/shell/query_util.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 namespace shell { 10 namespace shell {
11 namespace { 11 namespace {
12 12
13 TEST(QueryUtil, NoQuery) { 13 TEST(QueryUtil, NoQuery) {
14 GURL url("http://www.example.com/"); 14 GURL url("http://www.example.com/");
15 std::string query; 15 std::string query;
(...skipping 22 matching lines...) Expand all
38 GURL url("file:///tmp/file?a=b&c=d"); 38 GURL url("file:///tmp/file?a=b&c=d");
39 std::string query; 39 std::string query;
40 GURL base_url = GetBaseURLAndQuery(url, &query); 40 GURL base_url = GetBaseURLAndQuery(url, &query);
41 EXPECT_EQ(base_url, GURL("file:///tmp/file")); 41 EXPECT_EQ(base_url, GURL("file:///tmp/file"));
42 EXPECT_EQ(query, "?a=b&c=d"); 42 EXPECT_EQ(query, "?a=b&c=d");
43 } 43 }
44 44
45 } // namespace 45 } // namespace
46 } // namespace shell 46 } // namespace shell
47 } // namespace mojo 47 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/query_util.cc ('k') | mojo/shell/shell_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698