OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
6 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 6 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
7 #include "webkit/plugins/ppapi/ppb_file_chooser_impl.h" | 7 #include "webkit/plugins/ppapi/ppb_file_chooser_impl.h" |
8 | 8 |
9 using WebKit::WebString; | 9 using WebKit::WebString; |
10 | 10 |
11 namespace webkit { | 11 namespace webkit { |
12 namespace ppapi { | 12 namespace ppapi { |
13 | 13 |
14 TEST(PPB_FileChooser_ImplTest, ParseAcceptValue) { | 14 TEST(PPB_FileChooser_ImplTest, ParseAcceptValue) { |
15 std::vector<WebString> parsed; | 15 std::vector<WebString> parsed; |
16 | 16 |
(...skipping 13 matching lines...) Expand all Loading... |
30 "IMAGE/*,,!!,,text/plain, audio /(*) "); | 30 "IMAGE/*,,!!,,text/plain, audio /(*) "); |
31 EXPECT_EQ(3U, parsed.size()); | 31 EXPECT_EQ(3U, parsed.size()); |
32 EXPECT_EQ("image/*", parsed[0]); | 32 EXPECT_EQ("image/*", parsed[0]); |
33 EXPECT_EQ("text/plain", parsed[1]); | 33 EXPECT_EQ("text/plain", parsed[1]); |
34 // We don't need to reject invalid MIME tokens strictly. | 34 // We don't need to reject invalid MIME tokens strictly. |
35 EXPECT_EQ("audio /(*)", parsed[2]); | 35 EXPECT_EQ("audio /(*)", parsed[2]); |
36 } | 36 } |
37 | 37 |
38 } // namespace ppapi | 38 } // namespace ppapi |
39 } // namespace webkit | 39 } // namespace webkit |
OLD | NEW |