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 <sstream> | 5 #include <sstream> |
6 | 6 |
7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1736 SendEscape(); | 1736 SendEscape(); |
1737 EXPECT_TRUE(GetStringFromJS(contents, "chrome.embeddedSearch.searchBox.value", | 1737 EXPECT_TRUE(GetStringFromJS(contents, "chrome.embeddedSearch.searchBox.value", |
1738 &query)); | 1738 &query)); |
1739 EXPECT_EQ("", query); | 1739 EXPECT_EQ("", query); |
1740 EXPECT_EQ("", GetOmniboxText()); | 1740 EXPECT_EQ("", GetOmniboxText()); |
1741 | 1741 |
1742 EXPECT_TRUE(UpdateSearchState(contents)); | 1742 EXPECT_TRUE(UpdateSearchState(contents)); |
1743 EXPECT_LT(0, on_change_calls_); | 1743 EXPECT_LT(0, on_change_calls_); |
1744 EXPECT_EQ(0, submit_count_); | 1744 EXPECT_EQ(0, submit_count_); |
1745 } | 1745 } |
OLD | NEW |