| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/gtk/keyword_editor_view.h" | 5 #include "chrome/browser/gtk/keyword_editor_view.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/utf_string_conversions.h" |
| 13 #include "chrome/browser/gtk/gtk_tree.h" | 14 #include "chrome/browser/gtk/gtk_tree.h" |
| 14 #include "chrome/browser/search_engines/template_url.h" | 15 #include "chrome/browser/search_engines/template_url.h" |
| 15 #include "chrome/browser/search_engines/template_url_model.h" | 16 #include "chrome/browser/search_engines/template_url_model.h" |
| 16 #include "chrome/browser/search_engines/template_url_table_model.h" | 17 #include "chrome/browser/search_engines/template_url_table_model.h" |
| 17 #include "chrome/test/testing_profile.h" | 18 #include "chrome/test/testing_profile.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 20 |
| 20 class KeywordEditorViewTest : public testing::Test { | 21 class KeywordEditorViewTest : public testing::Test { |
| 21 public: | 22 public: |
| 22 virtual void SetUp() { | 23 virtual void SetUp() { |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 GetDisplayedEngines(editor).c_str()); | 253 GetDisplayedEngines(editor).c_str()); |
| 253 | 254 |
| 254 editor.OnEditedKeyword(d, L"DD", L"d", "example.com"); | 255 editor.OnEditedKeyword(d, L"DD", L"d", "example.com"); |
| 255 EXPECT_STREQ("!,_,AA,BBB,_,@,_,C,DD", | 256 EXPECT_STREQ("!,_,AA,BBB,_,@,_,C,DD", |
| 256 GetDisplayedEngines(editor).c_str()); | 257 GetDisplayedEngines(editor).c_str()); |
| 257 | 258 |
| 258 editor.OnEditedKeyword(c, L"CC", L"cc", "example.com"); | 259 editor.OnEditedKeyword(c, L"CC", L"cc", "example.com"); |
| 259 EXPECT_STREQ("!,_,AA,BBB,_,@,_,CC,DD", | 260 EXPECT_STREQ("!,_,AA,BBB,_,@,_,CC,DD", |
| 260 GetDisplayedEngines(editor).c_str()); | 261 GetDisplayedEngines(editor).c_str()); |
| 261 } | 262 } |
| OLD | NEW |