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

Side by Side Diff: components/autofill/content/browser/autofill_driver_impl_unittest.cc

Issue 108283005: Moved ipc-specific files from autofill/core to autofill/content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "Final" fix. Created 7 years 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
OLDNEW
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 <algorithm> 5 #include <algorithm>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 11 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
12 #include "components/autofill/content/browser/autofill_driver_impl.h" 12 #include "components/autofill/content/browser/autofill_driver_impl.h"
13 #include "components/autofill/content/common/autofill_messages.h"
13 #include "components/autofill/core/browser/autofill_external_delegate.h" 14 #include "components/autofill/core/browser/autofill_external_delegate.h"
14 #include "components/autofill/core/browser/autofill_manager.h" 15 #include "components/autofill/core/browser/autofill_manager.h"
15 #include "components/autofill/core/browser/autofill_test_utils.h" 16 #include "components/autofill/core/browser/autofill_test_utils.h"
16 #include "components/autofill/core/browser/test_autofill_manager_delegate.h" 17 #include "components/autofill/core/browser/test_autofill_manager_delegate.h"
17 #include "components/autofill/core/common/autofill_messages.h"
18 #include "components/autofill/core/common/autofill_switches.h" 18 #include "components/autofill/core/common/autofill_switches.h"
19 #include "components/autofill/core/common/form_data_predictions.h" 19 #include "components/autofill/core/common/form_data_predictions.h"
20 #include "content/public/browser/browser_context.h" 20 #include "content/public/browser/browser_context.h"
21 #include "content/public/browser/navigation_details.h" 21 #include "content/public/browser/navigation_details.h"
22 #include "content/public/browser/web_contents.h" 22 #include "content/public/browser/web_contents.h"
23 #include "content/public/common/frame_navigate_params.h" 23 #include "content/public/common/frame_navigate_params.h"
24 #include "content/public/test/mock_render_process_host.h" 24 #include "content/public/test/mock_render_process_host.h"
25 #include "ipc/ipc_test_sink.h" 25 #include "ipc/ipc_test_sink.h"
26 #include "testing/gmock/include/gmock/gmock.h" 26 #include "testing/gmock/include/gmock/gmock.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 TEST_F(AutofillDriverImplTest, SetNodeText) { 284 TEST_F(AutofillDriverImplTest, SetNodeText) {
285 base::string16 input_value(ASCIIToUTF16("barqux")); 285 base::string16 input_value(ASCIIToUTF16("barqux"));
286 base::string16 output_value; 286 base::string16 output_value;
287 driver_->RendererShouldSetNodeText(input_value); 287 driver_->RendererShouldSetNodeText(input_value);
288 EXPECT_TRUE(GetString16FromMessageWithID(AutofillMsg_SetNodeText::ID, 288 EXPECT_TRUE(GetString16FromMessageWithID(AutofillMsg_SetNodeText::ID,
289 &output_value)); 289 &output_value));
290 EXPECT_EQ(input_value, output_value); 290 EXPECT_EQ(input_value, output_value);
291 } 291 }
292 292
293 } // namespace autofill 293 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698