OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/chromeos/extensions/file_manager/url_util.h" | 5 #include "chrome/browser/chromeos/file_manager/url_util.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "net/base/escape.h" | 13 #include "net/base/escape.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 TEST(FileManagerUrlUtilTest, GetActionChoiceUrl_AdvancedMode) { | 126 TEST(FileManagerUrlUtilTest, GetActionChoiceUrl_AdvancedMode) { |
127 EXPECT_EQ("chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/" | 127 EXPECT_EQ("chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/" |
128 "action_choice.html?advanced-mode#/foo.txt", | 128 "action_choice.html?advanced-mode#/foo.txt", |
129 GetActionChoiceUrl(base::FilePath::FromUTF8Unsafe("foo.txt"), | 129 GetActionChoiceUrl(base::FilePath::FromUTF8Unsafe("foo.txt"), |
130 true).spec()); | 130 true).spec()); |
131 } | 131 } |
132 | 132 |
133 } // namespace | 133 } // namespace |
134 } // namespace util | 134 } // namespace util |
135 } // namespace file_manager | 135 } // namespace file_manager |
OLD | NEW |